Retro68/LaunchAPPL/Client/CMakeLists.txt

43 lines
1.0 KiB
CMake
Raw Normal View History

2018-04-20 17:25:54 +00:00
find_package(Boost COMPONENTS filesystem program_options)
set(LAUNCHMETHODS
Executor.h Executor.cc
MiniVMac.h MiniVMac.cc
2019-01-23 18:41:12 +00:00
SSH.h SSH.cc
StreamBasedLauncher.h StreamBasedLauncher.cc
2018-04-20 22:03:29 +00:00
Serial.h Serial.cc
2018-05-09 21:16:45 +00:00
TCP.h TCP.cc
2019-01-23 18:41:12 +00:00
SharedFile.h SharedFile.cc
2018-04-20 17:25:54 +00:00
)
if(APPLE)
LIST(APPEND LAUNCHMETHODS
Classic.h Classic.cc
)
LIST(APPEND LAUNCHMETHODS
Carbon.h Carbon.cc)
2018-04-20 17:25:54 +00:00
endif()
add_definitions(-DRETRO68_PREFIX="${CMAKE_INSTALL_PREFIX}")
add_executable(LaunchAPPL
LaunchAPPL.cc
MakeExecutable.cc
2018-04-20 17:25:54 +00:00
LaunchMethod.h LaunchMethod.cc
Launcher.h Launcher.cc
2018-04-20 17:25:54 +00:00
Utilities.h Utilities.cc
2018-04-20 17:25:54 +00:00
${LAUNCHMETHODS})
2018-04-20 17:25:54 +00:00
target_include_directories(LaunchAPPL PRIVATE ${CMAKE_INSTALL_PREFIX}/include ${Boost_INCLUDE_DIR})
2018-04-20 22:03:29 +00:00
target_link_libraries(LaunchAPPL ResourceFiles LaunchAPPLCommon ${Boost_LIBRARIES})
2018-04-20 17:25:54 +00:00
if(APPLE)
find_library(APPLICATIONSERVICES_FW ApplicationServices)
target_link_libraries(LaunchAPPL ${APPLICATIONSERVICES_FW})
2018-04-20 17:25:54 +00:00
endif()
install(TARGETS LaunchAPPL RUNTIME DESTINATION bin)