-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
65 lines (55 loc) · 2 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
61
62
63
64
65
cmake_minimum_required(VERSION 3.14)
project(Flame LANGUAGES CXX C)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_MAIN_TARGET_NAME ${CMAKE_PROJECT_NAME})
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(FLAME_NAMESPACE "FlameIDE")
set(FLAME_INCLUDE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/include)
set(FLAME_INCLUDE_TEST_PATH ${CMAKE_CURRENT_SOURCE_DIR})
set(FLAME_CURRENT_DIR ${CMAKE_CURRENT_SOURCE_DIR})
set(FLAME_ROOT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src)
set(FLAME_INCLUDE_SUBMODLUES_PATH ${FLAME_INCLUDE_PATH}/FlameIDE)
set(FLAME_SOURCE_SUBMODLUES_PATH ${FLAME_CURRENT_DIR}/src)
set(FLAME_TEST_SUBMODLUES_PATH ${FLAME_CURRENT_DIR}/tests)
include(FlameContrib)
include(CmakeFlameResolver)
flame_resolver_settings(
# Common options
# CMAKE_DEBUG # OFF
# CMAKE_DEBUG_SHOW_PARSE_RESULTS # OFF
# PRINT_COMMON_STATISTIC # OFF
# PRINT_DETAILED_STATISTIC # OFF
LOGGING # ON
CLEAN_AFTER_RESOLVE # ON
THREADING # ON
TESTING # ON
INSTALL # ON
LOCAL_INSTALL # ON
CMAKE_PACKAGING # ON
INPLACE_OBJECTS # ON
SHOW_HEADERS # ON
# Code generation options
ONLY_POSITION_INDEPENDENT_OBJECTS # ON
MAKE_STATIC # ON
MAKE_SHARED # ON
# MAKE_STANDALONE # OFF
EXPORT_ALL_SYMBOLS # ON
# Flag options
# CXX_NO_RTTI # OFF
# CXX_NO_EXCEPTIONS # OFF
PLATFORM_DEFINES # ON
WARNINGS # ON
# WARNINGS_AS_ERRORS # OFF
# Values
PROJECT_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}
LOCAL_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR}/install
)
if(FLAME_TESTING)
message(STATUS "Tests enabled")
enable_testing()
endif()
add_subdirectory(${FLAME_INCLUDE_SUBMODLUES_PATH})
add_subdirectory(${FLAME_SOURCE_SUBMODLUES_PATH})
add_subdirectory(${FLAME_TEST_SUBMODLUES_PATH})