From 518c1472812854daaba3c591920960c503393b13 Mon Sep 17 00:00:00 2001 From: orbea Date: Mon, 7 Oct 2019 14:51:40 -0700 Subject: [PATCH] cmake: Use an install target for visualboyadvance-m. --- CMakeLists.txt | 1 - src/wx/CMakeLists.txt | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ce2878d..b98ae49b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -983,7 +983,6 @@ endif() if(ENABLE_WX) add_subdirectory(src/wx) - install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/visualboyadvance-m${CMAKE_EXECUTABLE_SUFFIX} DESTINATION ${CMAKE_INSTALL_FULL_BINDIR}) endif() if(ENABLE_WX) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index efcf620d..43ad54e8 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -838,3 +838,9 @@ if(APPLE) endif() set(WX_EXE_NAME visualboyadvance-m-wx${CMAKE_EXECUTABLE_SUFFIX}) + +install( + TARGETS visualboyadvance-m + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} +)