diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-02 21:20:23 -0600 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-02 21:20:23 -0600 |
commit | e6fb000c6874874d50d94eee4b1c8e889f6791f1 (patch) | |
tree | c8b402ed75a19684603573abb9a813ce8a525c24 /CMakeLists.txt |
first commit
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..0d1f285 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,24 @@ + +cmake_minimum_required(VERSION 3.11) + +project(KillaFacsista VERSION 1.0) + +set(C_STANDARD 99) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + +# Add source files. +file(GLOB SRC_FILES src/*.c) + +add_executable(${PROJECT_NAME} ${SRC_FILES}) + +target_include_directories(${PROJECT_NAME} PUBLIC include src) +target_link_libraries(${PROJECT_NAME} raylib m) + +# Checks if OSX and links appropriate frameworks (Only required on MacOS) +if (APPLE) + target_link_libraries(${PROJECT_NAME} "-framework IOKit") + target_link_libraries(${PROJECT_NAME} "-framework Cocoa") + target_link_libraries(${PROJECT_NAME} "-framework OpenGL") +endif() + +add_subdirectory(src/killaEdit) |