diff options
author | Andreas Grois <andi@grois.info> | 2018-03-10 00:14:46 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-10 00:14:46 +0100 |
commit | 48d275a01baaff68a0c055dd77664b5d0f22d70d (patch) | |
tree | 93ebda133ea0ede266151b18772da6ca995607dd /BuddhaTest/CMakeLists.txt | |
parent | d9d395f85ec1ab1c8959118300d6e8be56d090e6 (diff) |
Dump result to image.png in current folder.
Diffstat (limited to 'BuddhaTest/CMakeLists.txt')
-rw-r--r-- | BuddhaTest/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/BuddhaTest/CMakeLists.txt b/BuddhaTest/CMakeLists.txt index d58d00a..be7d4d6 100644 --- a/BuddhaTest/CMakeLists.txt +++ b/BuddhaTest/CMakeLists.txt @@ -10,6 +10,8 @@ configure_file("Shaders/BuddhaCompute.glsl" ${CMAKE_CURRENT_BINARY_DIR}/Shaders/ configure_file("Shaders/BuddhaVertex.glsl" ${CMAKE_CURRENT_BINARY_DIR}/Shaders/BuddhaVertex.glsl)
find_package(OpenGL REQUIRED)
-target_include_directories(BuddhaTest PRIVATE "include" ${OPENGL_INCLUDE_DIR})
-target_link_libraries(BuddhaTest glfw ${OPENGL_gl_LIBRARY})
-# on Linux we need to link against libdl. Maybe add id here?
\ No newline at end of file +find_package(PNG REQUIRED)
+target_include_directories(BuddhaTest PRIVATE "include" ${OPENGL_INCLUDE_DIR} ${PNG_INCLUDE_DIRS})
+target_link_libraries(BuddhaTest glfw ${OPENGL_gl_LIBRARY} ${PNG_LIBRARIES})
+add_definitions(${PNG_DEFINITIONS})
+# on Linux we need to link against libdl. Maybe add id here?
|