-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (23 loc) · 964 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 3.21) # Use at least 3.21 to ensure compatibility
# Project definition
project(Ayur LANGUAGES C CSharp)
# Enable FetchContent for dependencies
include(FetchContent)
# Fetch Raylib
FetchContent_Declare(
raylib
GIT_REPOSITORY https://github.com/raysan5/raylib.git
GIT_TAG 5.5 # Replace with the desired version if necessary
)
# Ensure dependencies are configured properly
set(FETCHCONTENT_QUIET OFF) # Show progress during fetching
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # Disable Raylib examples
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) # Use static Raylib
FetchContent_MakeAvailable(raylib)
# Set output directories for libraries and executables
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# Add subdirectories
add_subdirectory(Core)
add_subdirectory(Framework)