Cycles: Make all #include statements relative to cycles source directory
[blender.git] / intern / cycles / bvh / CMakeLists.txt
index b35c20b7a3840f22faca5b9fa77afc2650b48818..4701d75350acb724f2c782c1df9dc3a643c8733b 100644 (file)
@@ -1,18 +1,33 @@
 
-include_directories(. ../kernel ../kernel/svm ../render ../util ../device)
+set(INC
+       ..
+)
 
-set(sources
+set(INC_SYS
+)
+
+set(SRC
        bvh.cpp
+       bvh_binning.cpp
        bvh_build.cpp
        bvh_node.cpp
-       bvh_sort.cpp)
+       bvh_sort.cpp
+       bvh_split.cpp
+       bvh_unaligned.cpp
+)
 
-set(headers
+set(SRC_HEADERS
        bvh.h
+       bvh_binning.h
        bvh_build.h
        bvh_node.h
        bvh_params.h
-       bvh_sort.h)
+       bvh_sort.h
+       bvh_split.h
+       bvh_unaligned.h
+)
 
-add_library(cycles_bvh ${sources} ${headers})
+include_directories(${INC})
+include_directories(SYSTEM ${INC_SYS})
 
+add_library(cycles_bvh ${SRC} ${SRC_HEADERS})