-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
44 lines (34 loc) · 1.07 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
PROJECT (qbus_collection)
SET(CMAKE_VERBOSE_MAKEFILE OFF)
SET(CMAKE_MACOSX_RPATH 0)
SET(CMAKE_BUILD_TYPE Debug)
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
#----------------------------------------------------------------------------------
# check for environment variable to set the etc path
if(DEFINED ENV{QBUS_ETC_DIR})
set(_ETCDIR $ENV{QBUS_ETC_DIR})
else()
set(_ETCDIR "base")
endif()
# try to locate the etc path
find_path (_ETCLOCATION ${_ETCDIR} HINTS ${PROJECT_SOURCE_DIR}/etc ${PROJECT_SOURCE_DIR}/../etc REQUIRED)
# set a cached variable
set(ETC_LOCATION ${_ETCLOCATION}/${_ETCDIR} CACHE PATH "configuration etc path")
message (STATUS "ETC_LOCATION = ${ETC_LOCATION}")
#----------------------------------------------------------------------------------
# basic libraries
SUBDIRS(libs/cape)
SUBDIRS(libs/adbl)
SUBDIRS(libs/qbus)
SUBDIRS(libs/qbus2)
# helper libraries for modules
SUBDIRS(libs/qcrypt)
SUBDIRS(libs/qwebs)
SUBDIRS(libs/qjobs)
SUBDIRS(libs/qflow)
# basic modules
SUBDIRS(modules/webs)
SUBDIRS(modules/auth)
SUBDIRS(modules/flow)
# tools
SUBDIRS(tools/cldd)