Let "make install" on OS X copy the bundle to /Applications.

The "dsptool" executable is not included in the bundle.
The "tester" executable is not included in the bundle and it no longer
installed on other platforms, since it is neither expected nor useful
to install unit tests.
This commit is contained in:
Maarten ter Huurne
2011-12-14 02:50:36 +01:00
parent ee5a29e6f2
commit 4c7c29b8b6
4 changed files with 24 additions and 9 deletions

View File

@ -115,7 +115,6 @@ endif()
add_executable(${DOLPHIN_EXE} ${SRCS})
target_link_libraries(${DOLPHIN_EXE} ${LIBS} ${WXLIBS})
install(TARGETS ${DOLPHIN_EXE} RUNTIME DESTINATION ${bindir})
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
include(BundleUtilities)
@ -157,4 +156,11 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
COMMAND ${CMAKE_COMMAND} -P copy_data_into_bundle.cmake
VERBATIM
)
# Install bundle into systemwide /Applications directory.
install(DIRECTORY ${BUNDLE_PATH} DESTINATION /Applications
USE_SOURCE_PERMISSIONS
)
else()
install(TARGETS ${DOLPHIN_EXE} RUNTIME DESTINATION ${bindir})
endif()

View File

@ -1,3 +1,5 @@
add_executable(dsptool Src/DSPTool.cpp)
target_link_libraries(dsptool core)
install(TARGETS dsptool RUNTIME DESTINATION ${bindir})
if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin"))
install(TARGETS dsptool RUNTIME DESTINATION ${bindir})
endif()

View File

@ -4,4 +4,3 @@ set(SRCS AudioJitTests.cpp
add_executable(tester ${SRCS})
target_link_libraries(tester core)
install(TARGETS tester RUNTIME DESTINATION ${bindir})