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)
|
2017-10-03 11:00:53 +00:00
|
|
|
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()
|
2017-10-03 16:44:06 +00:00
|
|
|
add_definitions(-DRETRO68_PREFIX="${CMAKE_INSTALL_PREFIX}")
|
2017-10-03 09:57:56 +00:00
|
|
|
|
2017-10-02 21:06:50 +00:00
|
|
|
add_executable(LaunchAPPL
|
2017-10-03 16:17:16 +00:00
|
|
|
LaunchAPPL.cc
|
2017-10-02 21:06:50 +00:00
|
|
|
|
|
|
|
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)
|