aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authornathansmith117 <nathansmith117@sdf.org>2025-02-10 08:12:55 +0000
committernathansmith117 <nathansmith117@sdf.org>2025-02-10 08:12:55 +0000
commitb04d5702719eca30a95d1db2a927b6605ebd3477 (patch)
treec388a6b152c117e2903e7acf63054211739e6df4 /CMakeLists.txt
parentfe9b718f8978cfd792f7303214b2dd45172b8d4b (diff)
downloadsldj-b04d5702719eca30a95d1db2a927b6605ebd3477.tar.gz
sldj-b04d5702719eca30a95d1db2a927b6605ebd3477.tar.bz2
sldj-b04d5702719eca30a95d1db2a927b6605ebd3477.zip
Some fast math stuff added
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b8f1a57..285d158 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,10 +10,16 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
file(GLOB SRC_FILES src/*.c src/libsldj/*.c)
+# Build exe file.
add_executable(${PROJECT_NAME} ${SRC_FILES})
-target_include_directories(${PROJECT_NAME} PUBLIC include include/libsldj src)
+target_include_directories(${PROJECT_NAME} PUBLIC include src)
target_link_libraries(${PROJECT_NAME} raylib m tcc)
+# Build libsldj.
+file(GLOB LIBSLDJ_SRC_FILES src/libsldj/*.c)
+add_library(libsldj SHARED ${LIBSLDJ_SRC_FILES})
+target_include_directories(libsldj PUBLIC include)
+
file(COPY include/libsldj DESTINATION ${CMAKE_BINARY_DIR})