-
Notifications
You must be signed in to change notification settings - Fork 59
/
CMakeLists.txt
60 lines (51 loc) · 2.43 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
##==================================================================================================
## EVE - Expressive Vector Engine
## Copyright : EVE Project Contributors
## SPDX-License-Identifier: BSL-1.0
##==================================================================================================
cmake_minimum_required(VERSION 3.18)
enable_testing()
## =================================================================================================
## Setup project
## =================================================================================================
project(eve LANGUAGES CXX)
set(EVE_MAJOR_VERSION 2023)
set(EVE_MINOR_VERSION 2)
set(EVE_PATCH_VERSION 15)
set(EVE_VERSION ${EVE_MAJOR_VERSION}.${EVE_MINOR_VERSION}.${EVE_PATCH_VERSION})
set(PROJECT_VERSION ${EVE_VERSION})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake )
## =================================================================================================
## No in-source build
## =================================================================================================
if (${PROJECT_SOURCE_DIR} STREQUAL ${PROJECT_BINARY_DIR})
message( FATAL_ERROR "[eve] Building in-source, not recommended! Build in a separate directory." )
endif()
## =================================================================================================
## Configuration
## =================================================================================================
include(config/options)
include(config/eve-install)
## =================================================================================================
## Documentation target
## =================================================================================================
if( EVE_BUILD_DOCUMENTATION )
include(config/doxygen)
endif()
## =================================================================================================
## Test and Benchmarks target
## =================================================================================================
if( EVE_BUILD_TEST )
include(CTest)
include(config/dependencies)
include(config/compiler)
include(config/types)
include(config/pch)
include(target/add_parent_target)
include(target/targets)
add_subdirectory("${PROJECT_SOURCE_DIR}/test/")
add_subdirectory("${PROJECT_SOURCE_DIR}/examples/")
endif()
if( EVE_BUILD_BENCHMARKS )
add_subdirectory("${PROJECT_SOURCE_DIR}/benchmarks/")
endif()