-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (22 loc) · 766 Bytes
/
CMakeLists.txt
File metadata and controls
27 lines (22 loc) · 766 Bytes
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
cmake_minimum_required(VERSION 3.15)
set(PRJ flexptp_linux)
project(${PRJ} C)
set(CMAKE_C_STANDARD 11)
add_executable(${PRJ}
Src/cli/cli.c
Src/cli/cli.h
Src/cli/term_colors.h
Src/main.c
Inc/flexptp_options.h
)
set(DEFS "_GNU_SOURCE=1")
target_compile_definitions(${PRJ} PUBLIC ${DEFS})
target_include_directories(${PRJ} PUBLIC Modules)
set(FLEXPTP_COMPILE_DEFS ${DEFS})
set(FLEXPTP_INCLUDES ${CMAKE_CURRENT_LIST_DIR}/Inc ${CMAKE_CURRENT_LIST_DIR}/Src ${CMAKE_CURRENT_LIST_DIR}/Modules)
set(FLEXPTP_HWPORT LINUX)
set(FLEXPTP_NSD LINUX)
set(FLEXPTP_SERVO KALMAN)
add_subdirectory(Modules/flexPTP)
target_link_libraries(${PRJ} flexptp)
target_include_directories(${PRJ} PUBLIC ${FLEXPTP_INCLUDE_EXPORT} ${FLEXPTP_INCLUDES})