-
Notifications
You must be signed in to change notification settings - Fork 29
/
CMakeLists.txt
33 lines (24 loc) · 1.06 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
cmake_minimum_required(VERSION 3.6)
project(libfixkalman)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_DEBUG_POSTFIX d)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY})
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY})
set(SOURCE_FILES
fixkalman.c)
set(HEADER_FILES
compiler.h
settings.h
fixkalman.h)
set(GRAVITY_EXAMPLE_FILES
example_gravity.c)
add_library(libfixkalman STATIC ${HEADER_FILES} ${SOURCE_FILES})
add_executable(gravity_example ${HEADER_FILES} ${GRAVITY_EXAMPLE_FILES})
target_link_libraries(libfixkalman ${CONAN_LIBS})
target_link_libraries(gravity_example ${CONAN_LIBS} libfixkalman)