| 1 |
|
| 2 |
# argparse |
| 3 |
|
| 4 |
add_library(argparse STATIC argparse/argparse.h argparse/argparse.cpp) |
| 5 |
target_include_directories(argparse INTERFACE argparse) |
| 6 |
target_link_libraries(OpenJazz argparse) |
| 7 |
|
| 8 |
# miniz |
| 9 |
|
| 10 |
add_library(miniz STATIC miniz/miniz.h miniz/miniz.cpp) |
| 11 |
target_compile_definitions(miniz INTERFACE MINIZ_NO_ARCHIVE_APIS) |
| 12 |
#target_compile_definitions(miniz PRIVATE _LARGEFILE64_SOURCE) |
| 13 |
target_include_directories(miniz INTERFACE miniz) |
| 14 |
target_link_libraries(OpenJazz miniz) |
| 15 |
|
| 16 |
# psmplug |
| 17 |
|
| 18 |
add_library(psmplug STATIC |
| 19 |
psmplug/fastmix.cpp |
| 20 |
psmplug/load_psm.cpp |
| 21 |
psmplug/psmplug.cpp |
| 22 |
psmplug/psmplug.h |
| 23 |
psmplug/snd_dsp.cpp |
| 24 |
psmplug/snd_flt.cpp |
| 25 |
psmplug/snd_fx.cpp |
| 26 |
psmplug/sndfile.cpp |
| 27 |
psmplug/sndfile.h |
| 28 |
psmplug/sndmix.cpp |
| 29 |
psmplug/stdafx.h |
| 30 |
psmplug/tables.h |
| 31 |
) |
| 32 |
target_include_directories(psmplug INTERFACE psmplug) |
| 33 |
target_link_libraries(OpenJazz psmplug) |
| 34 |
|
| 35 |
# stb |
| 36 |
|
| 37 |
add_library(stb STATIC stb/stb_rect_pack.h stb/stb_rect_pack.cpp) |
| 38 |
target_include_directories(stb INTERFACE stb) |
| 39 |
target_link_libraries(OpenJazz stb) |
| 40 |
|
| 41 |
if(ANDROID) |
| 42 |
include(FetchContent) |
| 43 |
|
| 44 |
# SDL2 |
| 45 |
set(SDL_TEST_ENABLED_BY_DEFAULT OFF) |
| 46 |
FetchContent_Declare(SDL2 |
| 47 |
URL https://github.com/libsdl-org/SDL/archive/refs/tags/release-2.32.10.zip |
| 48 |
#SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/SDL2 |
| 49 |
) |
| 50 |
FetchContent_MakeAvailable(SDL2) |
| 51 |
target_link_libraries(OpenJazz SDL2::SDL2) |
| 52 |
endif() |