diff options
author | gilzoide <gilzoide@gmail.com> | 2024-05-05 08:01:22 -0300 |
---|---|---|
committer | gilzoide <gilzoide@gmail.com> | 2024-05-05 08:01:22 -0300 |
commit | d78391bcf9d9730a70298c39871b60314629ed66 (patch) | |
tree | da5895d9ee1cef0bde86fc6ed930802f46093deb /libs | |
parent | 8e27cf1b37c6cf7495125aa09df075f53a3aa950 (diff) | |
download | gamejam-slgj-2024-d78391bcf9d9730a70298c39871b60314629ed66.tar.gz gamejam-slgj-2024-d78391bcf9d9730a70298c39871b60314629ed66.tar.bz2 gamejam-slgj-2024-d78391bcf9d9730a70298c39871b60314629ed66.zip |
Use raylib Git submodule in CMake build
Diffstat (limited to 'libs')
-rw-r--r-- | libs/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt new file mode 100644 index 0000000..4b4489c --- /dev/null +++ b/libs/CMakeLists.txt @@ -0,0 +1,9 @@ +set(BUILD_SHARED_LIBS OFF) # link third party libraries statically + +# raylib +if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/raylib") + message(FATAL_ERROR "Could not find raylib folder. Did you clone the Git submodules?") +endif() + +add_subdirectory(raylib) +target_compile_options(raylib PRIVATE "-w") # disable warnings |