aboutsummaryrefslogtreecommitdiff
path: root/cmake/host.cmake
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-07-04 00:55:59 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-07-06 22:21:50 +0200
commit892ecce78dec37a1b2701611dd72986442cd094d (patch)
treebbd7fb0a0229795bf52d0b8a9ff9b06251363a67 /cmake/host.cmake
parent99554cc243c4b2ec290639a04ebc2f189890d6dd (diff)
downloadwnix-892ecce78dec37a1b2701611dd72986442cd094d.tar.gz
Import project skeleton from rts
https://gitea.privatedns.org/xavi/rts
Diffstat (limited to 'cmake/host.cmake')
-rw-r--r--cmake/host.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/host.cmake b/cmake/host.cmake
new file mode 100644
index 0000000..36d7d70
--- /dev/null
+++ b/cmake/host.cmake
@@ -0,0 +1,8 @@
+if(CMAKE_BUILD_TYPE STREQUAL "Debug")
+ set(cflags ${cflags} -Og)
+else()
+ set(cflags ${cflags} -O3)
+endif()
+
+include("${CMAKE_CURRENT_LIST_DIR}/fetch-libfixmath.cmake")
+add_subdirectory(libfixmath)