diff options
author | Andreas Grois <andi@grois.info> | 2018-03-17 17:51:19 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-17 17:51:19 +0100 |
commit | b05e87dc5004f5badc02508570ddc55f31b451cc (patch) | |
tree | 98448778398e9d452b8ebc686f16d83e8211e323 /BuddhaTest/CMakeLists.txt | |
parent | 5a9c8599daee7d1d569ade3647d0078e56123c7a (diff) |
Correct line endings.
Diffstat (limited to 'BuddhaTest/CMakeLists.txt')
-rw-r--r-- | BuddhaTest/CMakeLists.txt | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/BuddhaTest/CMakeLists.txt b/BuddhaTest/CMakeLists.txt index 72230af..dc4deae 100644 --- a/BuddhaTest/CMakeLists.txt +++ b/BuddhaTest/CMakeLists.txt @@ -1,21 +1,21 @@ -add_executable(
- BuddhaShader
- "src/BuddhaTest.cpp"
- "src/glad.c"
- "src/Helpers.cpp"
-)
-
-configure_file("Shaders/BuddhaFragment.glsl" ${CMAKE_CURRENT_BINARY_DIR}/Shaders/BuddhaFragment.glsl)
-configure_file("Shaders/BuddhaCompute.glsl" ${CMAKE_CURRENT_BINARY_DIR}/Shaders/BuddhaCompute.glsl)
-configure_file("Shaders/BuddhaVertex.glsl" ${CMAKE_CURRENT_BINARY_DIR}/Shaders/BuddhaVertex.glsl)
-
-find_package(OpenGL REQUIRED)
-find_package(PNG REQUIRED)
-target_include_directories(BuddhaShader PRIVATE "include" ${OPENGL_INCLUDE_DIR} ${PNG_INCLUDE_DIRS})
-target_link_libraries(BuddhaShader glfw ${OPENGL_gl_LIBRARY} ${PNG_LIBRARIES})
-add_definitions(${PNG_DEFINITIONS})
-add_definitions(-DINSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}")
-# on Linux we need to link against libdl. Maybe add id here?
-
-install(DIRECTORY Shaders DESTINATION share/BuddhaShader FILES_MATCHING PATTERN *.glsl)
-install(TARGETS BuddhaShader RUNTIME DESTINATION bin)
+add_executable( + BuddhaShader + "src/BuddhaTest.cpp" + "src/glad.c" + "src/Helpers.cpp" +) + +configure_file("Shaders/BuddhaFragment.glsl" ${CMAKE_CURRENT_BINARY_DIR}/Shaders/BuddhaFragment.glsl) +configure_file("Shaders/BuddhaCompute.glsl" ${CMAKE_CURRENT_BINARY_DIR}/Shaders/BuddhaCompute.glsl) +configure_file("Shaders/BuddhaVertex.glsl" ${CMAKE_CURRENT_BINARY_DIR}/Shaders/BuddhaVertex.glsl) + +find_package(OpenGL REQUIRED) +find_package(PNG REQUIRED) +target_include_directories(BuddhaShader PRIVATE "include" ${OPENGL_INCLUDE_DIR} ${PNG_INCLUDE_DIRS}) +target_link_libraries(BuddhaShader glfw ${OPENGL_gl_LIBRARY} ${PNG_LIBRARIES}) +add_definitions(${PNG_DEFINITIONS}) +add_definitions(-DINSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}") +# on Linux we need to link against libdl. Maybe add id here? + +install(DIRECTORY Shaders DESTINATION share/BuddhaShader FILES_MATCHING PATTERN *.glsl) +install(TARGETS BuddhaShader RUNTIME DESTINATION bin) |