diff options
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?
|