-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
55 lines (47 loc) · 1.09 KB
/
CMakeLists.txt
File metadata and controls
55 lines (47 loc) · 1.09 KB
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
cmake_minimum_required(VERSION 3.21)
project(libasdf
VERSION 0.0.0
LANGUAGES C
)
# Global includes
include(GNUInstallDirs)
include(FindPkgConfig)
# Local includes
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(SubmoduleInit)
set(ASDFSTD_DIR ${CMAKE_SOURCE_DIR}/asdf-standard)
set(STC_DIR ${CMAKE_SOURCE_DIR}/third_party/STC)
set(MUNIT_DIR ${CMAKE_SOURCE_DIR}/tests/munit)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED TRUE)
set(PACKAGE_NAME "${PROJECT_NAME}")
set(PACKAGE_VERSION "${PROJECT_VERSION}")
# Update git submodules
list(APPEND submodules
asdf-standard
third_party/STC
tests/munit
)
submodule_init(${submodules})
include(ASDFOptions)
include(ASDFDependencies)
include(ASDFConfig)
add_subdirectory(third_party)
add_subdirectory(src)
add_subdirectory(include)
if(ENABLE_DOCS)
add_subdirectory(docs)
endif()
if(BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
if(ENABLE_TESTING)
enable_testing()
add_subdirectory(tests)
endif()
install(
FILES
LICENSE
CHANGES.rst
DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}
)