Retro68/LaunchAPPL/CMakeLists.txt

39 lines
898 B
CMake
Raw Normal View History

2017-10-01 00:42:02 +00:00
find_package(Boost COMPONENTS filesystem program_options)
2017-10-03 09:57:56 +00:00
set(LAUNCHMETHODS
Executor.h Executor.cc
MiniVMac.h MiniVMac.cc
)
if(APPLE)
LIST(APPEND LAUNCHMETHODS
Classic.h Classic.cc
)
find_program(LAUNCHCFMAPP LaunchCFMApp)
if(LAUNCHCFMAPP)
add_definitions(-DHAS_LAUNCHCFMAPP)
LIST(APPEND LAUNCHMETHODS
Carbon.h Carbon.cc)
endif()
2017-10-03 09:57:56 +00:00
endif()
add_definitions(-DRETRO68_PREFIX="${CMAKE_INSTALL_PREFIX}")
2017-10-03 09:57:56 +00:00
add_executable(LaunchAPPL
LaunchAPPL.cc
LaunchMethod.h LaunchMethod.cc
Launcher.h Launcher.cc
2017-10-03 09:57:56 +00:00
${LAUNCHMETHODS})
2017-10-01 00:42:02 +00:00
target_include_directories(LaunchAPPL PRIVATE ${CMAKE_INSTALL_PREFIX}/include ${Boost_INCLUDE_DIR})
target_link_libraries(LaunchAPPL ResourceFiles ${Boost_LIBRARIES})
2017-10-03 09:57:56 +00:00
if(APPLE)
find_library(APPLICATIONSERVICES_FW ApplicationServices)
target_link_libraries(LaunchAPPL ${APPLICATIONSERVICES_FW})
endif()
2017-10-01 00:42:02 +00:00
install(TARGETS LaunchAPPL RUNTIME DESTINATION bin)