forked from Ericsson/SUPL-3GPP-LPP-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (33 loc) · 1.26 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
cmake_minimum_required(VERSION 3.5)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_EXTENSIONS OFF)
project(example LANGUAGES C CXX)
option(USE_OPENSSL "USE_OPENSSL" ON)
option(USE_ASAN "USE_ASAN" OFF)
option(ASN_DEBUG "ASN_DEBUG" OFF)
option(INTERFACE_FD_DEBUG "Print FD debug information" OFF)
option(RECEIVER_UBLOX_THREADED "Print Receiver u-blox (threaded) debug information" OFF)
option (FORCE_COLORED_OUTPUT "Always produce ANSI-colored output (GNU/Clang only)." TRUE)
if (FORCE_COLORED_OUTPUT)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options (-fdiagnostics-color=always)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_compile_options (-fcolor-diagnostics)
endif ()
endif (FORCE_COLORED_OUTPUT)
if (USE_OPENSSL)
find_package(OpenSSL REQUIRED)
endif (USE_OPENSSL)
if(${ASN_DEBUG})
add_definitions(-DASN_EMIT_DEBUG=1)
endif(${ASN_DEBUG})
find_package(Threads REQUIRED)
add_compile_options("-Wall" "-Wno-unused-function" "-Wno-unused-variable" "-Wno-sign-compare")
add_subdirectory("libs")
add_subdirectory("interface")
add_subdirectory("asn.1")
add_subdirectory("generator/rtcm")
add_subdirectory("receiver/ublox")
add_subdirectory("examples/ublox")
add_subdirectory("examples/lpp")