aboutsummaryrefslogtreecommitdiff
path: root/cmake/host.cmake
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-05-24 22:19:34 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-05-24 22:20:04 +0200
commit7b8c0725f0d1ff0f4ae4b2f24e512ffff73bf647 (patch)
tree0b120e5d50eeca30789e653914d6dc7ec93d62b3 /cmake/host.cmake
parentd07b682c9b283216d4c2d1f046483b165958d929 (diff)
downloadjancity-7b8c0725f0d1ff0f4ae4b2f24e512ffff73bf647.tar.gz
Split CMakeLists.txt into platform-specific *.cmake
Diffstat (limited to 'cmake/host.cmake')
-rw-r--r--cmake/host.cmake12
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)