-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
53 lines (41 loc) · 1.83 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
cmake_minimum_required(VERSION 3.10)
project (cal
VERSION 3.0.0
DESCRIPTION "CAL: University of California BDD Package"
HOMEPAGE_URL "https://ssoelvsten.github.io/cal/"
LANGUAGES C CXX
)
# ============================================================================ #
# Settings
# ============================================================================ #
message(STATUS "")
message(STATUS "CMake build configuration for CAL ${PROJECT_VERSION}")
message(STATUS " OS: ${CMAKE_SYSTEM_NAME}")
message(STATUS " Compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
message(STATUS " | C Flags: ${CMAKE_C_FLAGS}")
message(STATUS " | CXX Flags: ${CMAKE_CXX_FLAGS}")
message(STATUS " | EXE Linker Flags: ${CMAKE_EXE_LINKER_FLAGS}")
message(STATUS " Library Options:")
option(CAL_SHARED "Build CAL as a shared library" OFF)
message(STATUS " | Shared: ${CAL_SHARED}")
option(CAL_DOCS "Build Documentation for CAL" ON)
message(STATUS " | Documentation (Doxygen): ${CAL_DOCS}")
option(CAL_TEST "Build Test for CAL" ON)
message(STATUS " | Test Executables: ${CAL_TEST}")
message(STATUS "")
# ============================================================================ #
# docs/
# ============================================================================ #
if (CAL_DOCS)
add_subdirectory(docs)
endif (CAL_DOCS)
# ============================================================================ #
# src/
# ============================================================================ #
add_subdirectory (src)
# ============================================================================ #
# test/
# ============================================================================ #
if (CAL_TEST)
add_subdirectory (test)
endif (CAL_TEST)