diff options
author | Andreas Grois <andi@grois.info> | 2018-03-10 20:34:35 +0100 |
---|---|---|
committer | Andreas Grois <andi@grois.info> | 2018-03-10 20:34:35 +0100 |
commit | 2759a3f45b5cd095bb79eff77b35978c8f8069c6 (patch) | |
tree | 4d0ded492e5de077fdad86f52729c1f9da556d86 /BuddhaTest/CMakeLists.txt | |
parent | 5127d05dfdc877b0fc06e6ec228cfef09b98539a (diff) |
Prepare install script, and make shader loading work from PREFIX/share/...
Diffstat (limited to 'BuddhaTest/CMakeLists.txt')
-rw-r--r-- | BuddhaTest/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/BuddhaTest/CMakeLists.txt b/BuddhaTest/CMakeLists.txt index be7d4d6..35c1fb4 100644 --- a/BuddhaTest/CMakeLists.txt +++ b/BuddhaTest/CMakeLists.txt @@ -14,4 +14,8 @@ 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})
+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 BuddhaTest RUNTIME DESTINATION bin)
|