cmake: Use an install target for visualboyadvance-m.

This commit is contained in:
orbea 2019-10-07 14:51:40 -07:00 committed by Rafael Kitover
parent 369da07e7f
commit 518c147281
2 changed files with 6 additions and 1 deletions

View File

@ -983,7 +983,6 @@ endif()
if(ENABLE_WX) if(ENABLE_WX)
add_subdirectory(src/wx) add_subdirectory(src/wx)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/visualboyadvance-m${CMAKE_EXECUTABLE_SUFFIX} DESTINATION ${CMAKE_INSTALL_FULL_BINDIR})
endif() endif()
if(ENABLE_WX) if(ENABLE_WX)

View File

@ -838,3 +838,9 @@ if(APPLE)
endif() endif()
set(WX_EXE_NAME visualboyadvance-m-wx${CMAKE_EXECUTABLE_SUFFIX}) set(WX_EXE_NAME visualboyadvance-m-wx${CMAKE_EXECUTABLE_SUFFIX})
install(
TARGETS visualboyadvance-m
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR}
)