-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
43 lines (34 loc) · 1.75 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
cmake_minimum_required(VERSION 3.10)
project(sentient_compiler
VERSION 0.0.1
DESCRIPTION "The toolset for application protocols / models definition and serialization"
HOMEPAGE_URL "https://github.com/hyper-level-nerds/sentient"
LANGUAGES C CXX)
set(SENTIENT_MSG_PREFIX "[SENTIENT]")
message("${SENTIENT_MSG_PREFIX} ____ _____ _ _ _____ ___ _____ _ _ _____ \n"
"${SENTIENT_MSG_PREFIX} / ___|| ____| \\ | |_ _|_ _| ____| \\ | |_ _|\n"
"${SENTIENT_MSG_PREFIX} \\___ \\| _| | \\| | | | | || _| | \\| | | | \n"
"${SENTIENT_MSG_PREFIX} ___) | |___| |\\ | | | | || |___| |\\ | | | \n"
"${SENTIENT_MSG_PREFIX} |____/|_____|_| \\_| |_| |___|_____|_| \\_| |_|\n"
"${SENTIENT_MSG_PREFIX} \n"
"${SENTIENT_MSG_PREFIX} The Sentient toolset \n")
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/v0.16.1/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake"
EXPECTED_HASH SHA256=396e16d0f5eabdc6a14afddbcfff62a54a7ee75c6da23f32f7a31bc85db23484
TLS_VERIFY ON)
endif()
include(${CMAKE_BINARY_DIR}/conan.cmake)
conan_cmake_run(CONANFILE conanfile.txt
BASIC_SETUIP
BUILD missing)
option(SENTIENT_BUILD_COMPILER "build schema compiler" ON)
option(SENTIENT_TEST_COMPILER "test schema compiler" ON)
include_directories(${CONAN_INCLUDE_DIRS})
link_directories(${CONAN_LIB_DIRS})
add_subdirectory(${CMAKE_SOURCE_DIR}/sentient_compiler)