forked from agelonch/aloe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
executable file
·47 lines (38 loc) · 1.38 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
45
46
47
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FATAL_ERROR "Prevented in-tree build. This is bad practice.")
endif(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
cmake_minimum_required (VERSION 2.6)
project (ALOE++)
# The version number.
set (ALOE_VERSION_MAJOR 1)
set (ALOE_VERSION_MINOR 0)
set(MODULE_REPOS_NAME "default")
option(DEBUG "Compiles with debugging symbols and no optimizations" OFF)
option(LOG "Compiles with logging service enabled (enabled by default in debug mode)" OFF)
if(DEBUG)
message("-- Configuring debugging CFLAGS")
set(LOGEN "-DLOGS_ENABLED=1")
message("-- LOGS Enabled")
set(CFDEB "-O0 -g -rdynamic ${LOGEN}")
else()
set(LOGEN "-DLOGS_ENABLED=0")
if (LOG)
message("-- LOGS Enabled")
set(LOGEN "-DLOGS_ENABLED=1")
else()
message("-- LOGS Disabled")
endif()
set(CFDEB "${LOGEN}")
endif()
set(CMAKE_C_FLAGS "${CFDEB} -Wall -Winline -Wno-unused-result -Wno-format -std=c99 -D_GNU_SOURCE -fPIC")
set(CMAKE_BINARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(RTDAL_INCLUDE "")
list(APPEND RTDAL_INCLUDE ${CMAKE_SOURCE_DIR}/rtdal_lnx/include)
list(APPEND RTDAL_INCLUDE ${CMAKE_SOURCE_DIR}/rtdal_lnx/extern)
set(OESR_INCLUDE ${CMAKE_SOURCE_DIR}/oesr/include)
set(VOLK_INCLUDE ${CMAKE_SOURCE_DIR}/volk/include)
add_subdirectory(volk)
add_subdirectory(oesr)
add_subdirectory(rtdal_lnx)
add_subdirectory(modrep_default)
add_subdirectory(modrep_osld)