Retro68/LaunchAPPL/CMakeLists.txt

33 lines
710 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
Carbon.h Carbon.cc
)
endif()
add_executable(LaunchAPPL
LaunchAPPL.cc bootblock.c
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)