2019-12-17 14:46:50 +00:00
|
|
|
include(FindPkgConfig)
|
|
|
|
|
|
|
|
add_executable(sa2
|
|
|
|
main.cpp
|
|
|
|
bitmaps.cpp
|
2020-10-11 16:34:19 +01:00
|
|
|
emulator.cpp
|
2020-10-15 12:55:27 +01:00
|
|
|
gamepad.cpp
|
2020-10-20 15:32:45 +01:00
|
|
|
sdirectsound.cpp
|
2020-11-14 09:29:21 +00:00
|
|
|
utils.cpp
|
2019-12-17 14:46:50 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
find_package(SDL2 REQUIRED)
|
2020-11-21 09:35:15 +00:00
|
|
|
pkg_search_module(SDL2_IMAGE REQUIRED SDL2_image)
|
2019-12-17 14:46:50 +00:00
|
|
|
|
|
|
|
target_compile_features(sa2 PUBLIC cxx_std_17)
|
|
|
|
|
|
|
|
target_include_directories(sa2 PRIVATE
|
|
|
|
${SDL2_INCLUDE_DIRS}
|
2020-11-21 09:35:15 +00:00
|
|
|
${SDL2_IMAGE_INCLUDE_DIRS}
|
2019-12-17 14:46:50 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(sa2 PRIVATE
|
|
|
|
${SDL2_LIBRARIES}
|
2020-11-21 09:35:15 +00:00
|
|
|
${SDL2_IMAGE_LIBRARIES}
|
2019-12-17 14:46:50 +00:00
|
|
|
appleii
|
2020-10-09 19:13:42 +01:00
|
|
|
common2
|
2019-12-17 14:46:50 +00:00
|
|
|
)
|
2019-12-17 14:51:41 +00:00
|
|
|
|
2020-10-09 09:46:15 +01:00
|
|
|
install(TARGETS sa2
|
|
|
|
DESTINATION bin)
|