-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (33 loc) · 1 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
#
# DSPFlow CMakeLists.txt
#
# Ben Kempke
#
# Shared libraries should be compiled as follows:
# gcc -shared -nostartfiles -o bar bar.c
#
# Also make sure to install libdb in order to compile...:
# sudo apt-get install libdb-dev
cmake_minimum_required(VERSION 2.6)
project(DSPFlow)
#Version 0.1
set(DSPFlow_VERSION_MAJOR 0)
set(DSPFlow_VERSION_MINOR 1)
#Set the paths to find the correct header files
include_directories(
${CMAKE_SOURCE_DIR}/lib
${CMAKE_SOURCE_DIR}/block_packages/generic/lib
)
#Find the threading library 'package'
find_package(Threads)
#Add in debugging symbols for now... TODO: Get rid of debugging symbols
set(CMAKE_CXX_FLAGS "-g -Wall")
#And the library which provides dynamic linking (will be different for NaCl though...)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
find_package(DL)
if(NOT DL_FOUND)
message(FATAL_ERROR "NO libdl... shutting down...")
endif()
#message(FATAL_ERROR "${DL_LIBRARIES}")
add_subdirectory(src)
add_subdirectory(block_packages)