-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
37 lines (26 loc) · 1.14 KB
/
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
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.16)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/Library/vcpkg/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
if(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR} AND NOT WIN32)
message(FATAL_ERROR
"You can not use CMake to build from the root of it's source tree!\n"
"Remove the CMakeCache.txt file from this directory, then create a separate directory\n"
"(either below this directory or elsewhere), and then re-run CMake from there.")
endif(${CMAKE_CURRENT_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_BINARY_DIR} AND NOT WIN32)
project(RType LANGUAGES CXX VERSION 1.0.1)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})
set(CMAKE_CXX_STANDARD 20)
# Dependencies (find_package etc.)
include(Dependencies)
include(BuildFiles)
# Link dependencies (header, sources..)
include(DependenciesLink)
include(Library/library.cmake)
# Include subfolders
include_directories(.)
include_directories(Assets/Components)
# Packages
include(Packages/packages.cmake)
# Build Flags
include(BuildFlags)
# Package app
include(Package)