aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/citra
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-07-09 20:19:02 +0100
committerGravatar Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-07-09 20:19:02 +0100
commit7c51bc44aabc4be0fbc26761637b56d6bf35da55 (patch)
treeaf01c6b5baf567fb7ab085842c17568982537604 /src/citra
parentac7bc214abe6b8f9eb2c122709ea99a0ca4b4245 (diff)
Citra, CitraQt: Tell cmake to install the compiled binaries.
This will help packaging tremendously, as a `make DESTDIR=… install` will now put every file at their place (on Linux and related).
Diffstat (limited to 'src/citra')
-rw-r--r--src/citra/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt
index 713f4919..5e8cbfa3 100644
--- a/src/citra/CMakeLists.txt
+++ b/src/citra/CMakeLists.txt
@@ -18,4 +18,6 @@ target_link_libraries(citra core common video_core)
target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih)
target_link_libraries(citra ${PLATFORM_LIBRARIES})
-#install(TARGETS citra RUNTIME DESTINATION ${bindir})
+if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD|NetBSD")
+ install(TARGETS citra RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
+endif()