30 lines
500 B
CMake
30 lines
500 B
CMake
include(FindPkgConfig)
|
|
|
|
add_executable(sa2
|
|
main.cpp
|
|
bitmaps.cpp
|
|
emulator.cpp
|
|
gamepad.cpp
|
|
sdirectsound.cpp
|
|
utils.cpp
|
|
)
|
|
|
|
find_package(SDL2 REQUIRED)
|
|
pkg_search_module(SDL2_IMAGE REQUIRED SDL2_image)
|
|
|
|
target_compile_features(sa2 PUBLIC cxx_std_17)
|
|
|
|
target_include_directories(sa2 PRIVATE
|
|
${SDL2_INCLUDE_DIRS}
|
|
${SDL2_IMAGE_INCLUDE_DIRS}
|
|
)
|
|
|
|
target_link_libraries(sa2 PRIVATE
|
|
${SDL2_LIBRARIES}
|
|
${SDL2_IMAGE_LIBRARIES}
|
|
appleii
|
|
common2
|
|
)
|
|
|
|
install(TARGETS sa2
|
|
DESTINATION bin)
|