diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-05-24 22:19:34 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-05-24 22:20:04 +0200 |
| commit | 7b8c0725f0d1ff0f4ae4b2f24e512ffff73bf647 (patch) | |
| tree | 0b120e5d50eeca30789e653914d6dc7ec93d62b3 /cmake/host.cmake | |
| parent | d07b682c9b283216d4c2d1f046483b165958d929 (diff) | |
| download | jancity-7b8c0725f0d1ff0f4ae4b2f24e512ffff73bf647.tar.gz | |
Split CMakeLists.txt into platform-specific *.cmake
Diffstat (limited to 'cmake/host.cmake')
| -rw-r--r-- | cmake/host.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cmake/host.cmake b/cmake/host.cmake new file mode 100644 index 0000000..b1b000a --- /dev/null +++ b/cmake/host.cmake @@ -0,0 +1,12 @@ +file(MAKE_DIRECTORY ${cdroot}) +find_package(SDL 1.2 REQUIRED) +find_package(SDL_mixer 1.2 REQUIRED) +set(SDL1_2_BUILD 1) + +if(CMAKE_BUILD_TYPE STREQUAL "Debug") + set(cflags ${cflags} -Og) +else() + set(cflags ${cflags} -O3) +endif() + +add_subdirectory(libfixmath) |
