-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
39 lines (28 loc) · 1010 Bytes
/
CMakeLists.txt
File metadata and controls
39 lines (28 loc) · 1010 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
38
39
option(BUILD_TESTING "Build testing" OFF)
option(BUILD_RUNTIME "Build runtime" ON)
option(BUILD_EXAMPLE "Build example" OFF)
option(BUILD_DOXYGEN "Build doxygen documentation" OFF)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/webframe.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/configure.cmake)
if(NOT VCPKG_ROOT)
set(VCPKG_ROOT $ENV{VCPKG_ROOT})
if(NOT VCPKG_ROOT)
message(FATAL_ERROR "VCPKG_ROOT environment variable is not set. Please set it to the root of your vcpkg installation.")
endif()
endif()
configure_vcpkg_features()
set(CMAKE_TOOLCHAIN_FILE "${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" CACHE STRING "Vcpkg toolchain file")
cmake_minimum_required(VERSION 3.15)
project(webframe VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
configure_packages()
add_subdirectory(src)
if(BUILD_TESTING)
enable_testing()
add_subdirectory(tests)
endif()
if(BUILD_EXAMPLE)
add_subdirectory(example)
endif()