-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
41 lines (30 loc) · 928 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
30
31
32
33
34
35
36
37
38
39
40
41
project(EKF)
cmake_minimum_required (VERSION 3.5)
# -g allows for gdb debugging
# -03 enables optimizations for best performance
add_definitions(-std=c++11 -O3)
set(CXX_FLAGS "-Wall -O3 -funroll-loops")
set(CMAKE_CXX_FLAGS "${CXX_FLAGS}")
# set(CMAKE_VERBOSE_MAKEFILE ON)
set(SOURCES
src/common/format.h
src/common/helpers.cpp
src/common/helpers.h
src/common/MeasurementPackage.h
src/common/tools.cpp
src/common/tools.h
src/EKF.cpp
src/EKF.h
src/EKFTracker.cpp
src/EKFTracker.h
src/main.cpp
)
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
include_directories(/usr/local/include)
include_directories(/usr/local/opt/openssl/include)
link_directories(/usr/local/lib)
link_directories(/usr/local/opt/openssl/lib)
link_directories(/usr/local/Cellar/libuv/1*/lib)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_executable(EKF ${SOURCES})
target_link_libraries(EKF z ssl uv uWS)