-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
37 lines (29 loc) · 945 Bytes
/
CMakeLists.txt
File metadata and controls
37 lines (29 loc) · 945 Bytes
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
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.18)
project(null0
DESCRIPTION "null0 game engine"
HOMEPAGE_URL "https://github.com/konsumer/null0"
VERSION 0.0.1
LANGUAGES C
)
if(POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0135 NEW)
endif()
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
endif()
if(POLICY CMP0169)
cmake_policy(SET CMP0169 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0169 NEW)
endif()
# enable colors for ninja
set(CMAKE_COLOR_DIAGNOSTICS ON)
# Prevent dependencies from creating uninstall targets (VS generator doesn't support duplicates)
# This is cleaner than ALLOW_DUPLICATE_CUSTOM_TARGETS which doesn't work with VS generators
set(PHYSFS_DISABLE_INSTALL ON CACHE BOOL "" FORCE)
set(RAYLIB_DISABLE_UNINSTALL ON CACHE BOOL "" FORCE)
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
include(FetchContent)
# set(FETCHCONTENT_QUIET OFF)
add_subdirectory(host)