CMakeLists.txt 1.04 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
cmake_minimum_required(VERSION 2.8.9)
project (rapidmix)

# The version number.
set (rapidmix_VERSION_MAJOR 1)
set (rapidmix_VERSION_MINOR 0)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

11
12
# Main lib
include_directories(${PROJECT_SOURCE_DIR}/src)
13

14
15
16
17
18
19
20
21
22
23
24
25
26
# RAPID-MIX dependencies
include_directories(dependencies/RapidLib/src)
include_directories(dependencies/xmm/src)
include_directories(dependencies/GVF)
include_directories(dependencies/Maximilian)
include_directories(dependencies/Maximilian/libs)
include_directories(dependencies/pipo/src/include)
include_directories(dependencies/pipo/src/host)

# Third party dependencies
include_directories(dependencies/third_party/json)

file(GLOB_RECURSE RM_SOURCES "${PROJECT_SOURCE_DIR}/src/*.cpp")
Michael Zbyszyński's avatar
Michael Zbyszyński committed
27
file(GLOB JSON_SRC "${PROJECT_SOURCE_DIR}/dependencies/third_party/jsoncpp.cpp")
28

29
30
31
32
33
34
35
#Set the source for the main library, using the groups defined above
set(RAPIDMIX_SRC ${RM_SOURCES} ${JSON_SRC})

add_library(RMIX ${RAPIDMIX_SRC})

add_executable(rapidmix rapidmixCMake.cpp )
target_link_libraries(rapidmix RMIX)