Retro68/LaunchAPPL/CMakeLists.txt
2017-10-03 11:57:56 +02:00

33 lines
710 B
CMake

find_package(Boost COMPONENTS filesystem program_options)
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
${LAUNCHMETHODS})
target_include_directories(LaunchAPPL PRIVATE ${CMAKE_INSTALL_PREFIX}/include ${Boost_INCLUDE_DIR})
target_link_libraries(LaunchAPPL ResourceFiles ${Boost_LIBRARIES})
if(APPLE)
find_library(APPLICATIONSERVICES_FW ApplicationServices)
target_link_libraries(LaunchAPPL ${APPLICATIONSERVICES_FW})
endif()
install(TARGETS LaunchAPPL RUNTIME DESTINATION bin)