-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
40 lines (31 loc) · 950 Bytes
/
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
#
# libWexpr/CMakeLists.txt
# Reference W-Expressions C library
#
# Can build with normal cmake or use Catalyst.
#
cmake_minimum_required (VERSION 3.3)
project (libWexpr
#VERSION master
DESCRIPTION "Library for handling W Expressions"
)
set (CMAKE_C_STANDARD 99)
set (CMAKE_C_STANDARD_REQUIRED YES)
# NOTE: If change, must change in libWexpr.h too. Someday should use configure or something.
set (LIBWEXPR_VERSION_MAJOR 1)
set (LIBWEXPR_VERSION_MINOR 1)
set (LIBWEXPR_VERSION_PATCH 0)
if (CATALYST_INSTALL_PREFIX) # use catalyst on top of cmake
list (INSERT CMAKE_MODULE_PATH 0
${CATALYST_INSTALL_PREFIX}/Catalyst/Modules/
)
include (Catalyst)
catalyst_module_declare (libWexpr)
catalyst_module_declare (libWexprSchema)
catalyst_module_load(MbedTLS) # dependency of curl
endif ()
# Documentation
add_subdirectory (Documentation/Doxygen)
add_subdirectory (libWexpr)
add_subdirectory (libWexprSchema)
add_subdirectory (WexprTool)