From d78391bcf9d9730a70298c39871b60314629ed66 Mon Sep 17 00:00:00 2001 From: gilzoide Date: Sun, 5 May 2024 08:01:22 -0300 Subject: Use raylib Git submodule in CMake build --- libs/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libs/CMakeLists.txt (limited to 'libs') 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 -- cgit v1.2.3