forked from manojgudi/grex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (40 loc) · 1.5 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
########################################################################
# Project setup
########################################################################
cmake_minimum_required(VERSION 2.8)
project(grex CXX C)
enable_testing()
#various compiler flags
if(CMAKE_COMPILER_IS_GNUCXX)
add_definitions(-Wall)
add_definitions(-Wextra)
endif()
if(MSVC)
add_definitions(-D_WIN32_WINNT=0x0501) #minimum version required is windows xp
add_definitions(-DNOMINMAX) #disables stupidity and enables std::min and std::max
add_definitions(-DBOOST_ALL_DYN_LINK) #setup boost auto-linking in msvc
endif(MSVC)
#add find script modules for build dependencies
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
########################################################################
# Import the GRAS Tool
########################################################################
if(GRAS_ROOT)
#GRAS_ROOT already set
elseif($ENV{GRAS_ROOT})
set(GRAS_ROOT $ENV{GRAS_ROOT})
else(GRAS_ROOT)
set(GRAS_ROOT ${CMAKE_INSTALL_PREFIX})
endif(GRAS_ROOT)
list(APPEND CMAKE_MODULE_PATH ${GRAS_ROOT}/share/gras/cmake/Modules)
include(GRASTool)
########################################################################
# Each subdirectory has a collection of blocks
########################################################################
add_subdirectory(math)
add_subdirectory(misc)
add_subdirectory(network)
add_subdirectory(sources)
add_subdirectory(uhd)
add_subdirectory(packet)
add_subdirectory(jit)