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
commit9073d82ea66ee5c07c4603a62f9bb07b3eb5c3ce (patch)
treee416ff0ee628e090eb531291e098ce111318fc50 /cmake/host.cmake
parent938ab934826ba8b94a1ea43ce7f6b583cee10b50 (diff)
downloadrts-9073d82ea66ee5c07c4603a62f9bb07b3eb5c3ce.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)