-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (27 loc) · 951 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
cmake_minimum_required(VERSION 3.14)
project(PID-controller)
set(CMAKE_CXX_STANDARD 17)
# CMake policies
cmake_policy(SET CMP0022 NEW)
#SET ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
# External dependencies
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/external)
# Location where external projects will be downloaded
set(DOWNLOAD_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/downloads"
CACHE PATH "Location where external projects will be downloaded.")
mark_as_advanced(DOWNLOAD_LOCATION)
# Prevent overriding the parent project's compiler/linker
# settings on Windows
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
include_directories("${PROJECT_SOURCE_DIR}/include" include src)
add_library(PID
src/PID.cpp
src/LowPassFilter.cpp)
# Setup testing
#enable_testing()
# Add test cpp file
add_executable(main
tests/main.cpp
)
target_link_libraries(main PID)
#add_test(NAME main.exe COMMAND main.exe)