summaryrefslogtreecommitdiff
path: root/graphics/luxrender/files/patch-luxrays-samples-smallluxgpu4-CMakeLists.txt
blob: 06569f21524ac4a90e3d9ce376bdb0b843284d0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- ../luxrender-luxrays-7c7127ee1fa4/samples/smallluxgpu4/CMakeLists.txt.orig
+++ ../luxrender-luxrays-7c7127ee1fa4/samples/smallluxgpu4/CMakeLists.txt
@@ -25,6 +25,8 @@
 #
 #############################################################################
 
+find_package(Threads)
+
 set(SMALLLUXGPU_SRCS
 	smallluxgpu.cpp
 	displayfunc.cpp
@@ -32,7 +34,7 @@ set(SMALLLUXGPU_SRCS
 
 add_executable(slg4 ${SMALLLUXGPU_SRCS})
 
-TARGET_LINK_LIBRARIES(slg4 luxcore smallluxgpu luxrays ${OPENGL_LIBRARIES} ${GLEW_LIBRARY} ${GLUT_LIBRARY} ${TIFF_LIBRARIES} ${OPENEXR_LIBRARIES} ${PNG_LIBRARIES} ${JPEG_LIBRARIES})
+TARGET_LINK_LIBRARIES(slg4 luxcore smallluxgpu luxrays ${OPENGL_LIBRARIES} ${GLEW_LIBRARY} ${GLUT_LIBRARY} ${TIFF_LIBRARIES} ${OPENEXR_LIBRARIES} ${PNG_LIBRARIES} ${JPEG_LIBRARIES} ${PYTHON_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} -lexecinfo)
 
 # This instructs FREEGLUT to emit a pragma for the static version
 SET_TARGET_PROPERTIES(slg4 PROPERTIES COMPILE_DEFINITIONS FREEGLUT_STATIC)