-
Notifications
You must be signed in to change notification settings - Fork 26
/
CMakeLists.txt
29 lines (19 loc) · 857 Bytes
/
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
project(ExtendedKF)
cmake_minimum_required (VERSION 3.5)
add_definitions(-std=c++11)
set(CXX_FLAGS "-Wall")
set(CMAKE_CXX_FLAGS, "${CXX_FLAGS}")
set(sources src/main.cpp src/tools.cpp src/FusionEKF.cpp src/kalman_filter.cpp src/tools.h src/FusionEKF.h src/kalman_filter.h)
set(test_sources test/test_main.cpp test/tools_test.cpp src/tools.cpp src/tools.h )
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
include_directories(/usr/local/include)
include_directories(/usr/local/opt/openssl/include)
include_directories(./libs)
link_directories(/usr/local/lib)
link_directories(/usr/local/opt/openssl/lib)
link_directories(/usr/local/Cellar/libuv/1.12.0/lib)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_executable(ExtendedKF ${sources})
add_executable(Tests ${test_sources})
target_link_libraries(ExtendedKF z ssl uv uWS)
target_link_libraries(Tests)