-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
23 lines (22 loc) · 894 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
cmake_minimum_required(VERSION 3.5)
project (OpenGames
VERSION 0.1.0
DESCRIPTION "OpenGame is collection of simple games made with raylib"
HOMEPAGE_URL "https://github.com/LinMAD/OpenGames"
LANGUAGES C CXX
)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# ----------------------------------------------------------------------
# Open Games Core
# ----------------------------------------------------------------------
add_subdirectory(Core)
# ----------------------------------------------------------------------
# Games Implementations
# ----------------------------------------------------------------------
file(GLOB SUBDIRS RELATIVE ${CMAKE_SOURCE_DIR}/Games ${CMAKE_SOURCE_DIR}/Games/*)
foreach(subdir ${SUBDIRS})
if(IS_DIRECTORY ${CMAKE_SOURCE_DIR}/Games/${subdir})
add_subdirectory(Games/${subdir})
endif()
endforeach()