-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
45 lines (35 loc) · 1.29 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
cmake_policy(SET CMP0048 NEW)
cmake_minimum_required (VERSION 3.1)
set(CMAKE_INSTALL_PREFIX "c:/opt/")
option(BUILD_SERVER "Builds server (requires Boost and Qt5)." OFF)
option(BUILD_SAMPLES "Builds samples." OFF)
option(BUILD_QT_TESTS "Builds qt tests (requires Boost and Qt5)." OFF)
option(BUILD_ASN1_FILES "Re-generates sources from .asn1 file (requires asn1c)." OFF)
option(BUILD_ASN1_DEBUG "Enables asn1 debug." OFF)
if(BUILD_SAMPLES AND NOT BUILD_SERVER)
project (DbgToolkitClient VERSION 1.1.0)
else (BUILD_SAMPLES AND NOT BUILD_SERVER)
project (DbgToolkit VERSION 1.1.0)
endif (BUILD_SAMPLES AND NOT BUILD_SERVER)
set (CMAKE_VERBOSE_MAKEFILE on)
if(BUILD_ASN1_DEBUG)
add_definitions("-DEMIT_ASN_DEBUG=1")
add_definitions("-DREDIR_ASN_DEBUG")
endif(BUILD_ASN1_DEBUG)
# set up include-directories
include_directories (
"${PROJECT_SOURCE_DIR}" # to find trace_client/trace.h
"${PROJECT_BINARY_DIR}") # to find trace_client/config.h
include_directories(include)
add_subdirectory ("trace_version")
add_subdirectory ("trace_proto")
if(BUILD_SAMPLES)
add_subdirectory ("sample_integrations")
endif(BUILD_SAMPLES)
if(BUILD_SERVER)
add_subdirectory ("trace_server")
endif(BUILD_SERVER)
if(BUILD_QT_TESTS)
add_subdirectory ("tests/qt_server")
# add_subdirectory ("tests/qt_only")
endif(BUILD_QT_TESTS)