aboutsummaryrefslogtreecommitdiff
path: root/src/killaEdit/CMakeLists.txt
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-07-02 21:20:23 -0600
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-07-02 21:20:23 -0600
commite6fb000c6874874d50d94eee4b1c8e889f6791f1 (patch)
treec8b402ed75a19684603573abb9a813ce8a525c24 /src/killaEdit/CMakeLists.txt
first commit
Diffstat (limited to 'src/killaEdit/CMakeLists.txt')
-rw-r--r--src/killaEdit/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/killaEdit/CMakeLists.txt b/src/killaEdit/CMakeLists.txt
new file mode 100644
index 0000000..e1c7113
--- /dev/null
+++ b/src/killaEdit/CMakeLists.txt
@@ -0,0 +1,12 @@
+file(GLOB KILLA_EDIT_SRC_FILES *.c)
+
+add_executable(KillaEdit ${KILLA_EDIT_SRC_FILES})
+target_include_directories(KillaEdit PUBLIC src ../../include src/killaEdit)
+target_link_libraries(KillaEdit PUBLIC raylib m)
+
+# Checks if OSX and links appropriate frameworks (Only required on MacOS)
+if (APPLE)
+ target_link_libraries(KillaEdit "-framework IOKit")
+ target_link_libraries(KillaEdit "-framework Cocoa")
+ target_link_libraries(KillaEdit "-framework OpenGL")
+endif()