forked from open-edge-platform/edge-ai-libraries
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
48 lines (41 loc) · 1.49 KB
/
CMakeLists.txt
File metadata and controls
48 lines (41 loc) · 1.49 KB
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
42
43
44
45
46
47
48
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2025 Intel Corporation
cmake_minimum_required(VERSION 3.5)
project(plcopen_benchmark VERSION 0.1.0 LANGUAGES CXX)
# Default options
set(ROOTDIR "/" CACHE PATH "Root directory.")
# - plcopen_motion_deps.cmake
# option(PLOT "Enable matplotlib c++" OFF)
# - xenomai_flags.cmake
# option(COBALT "Enable compiling with Xenomai" OFF)
# set(XENOMAI_DIR "/usr/xenomai" CACHE PATH "Root directory of Xenomai.")
# set(XENO_BINDIR "${XENOMAI_DIR}/bin" CACHE PATH "Root directory of Xenomai.")
# Includes
find_path(
PLCOPEN_CMAKE_MODULE_PATH
NAMES plcopen_header.cmake
HINTS ${ROOTDIR}/usr/include ${ROOTDIR}/usr/local/include
)
message(STATUS "PLCOPEN_CMAKE_MODULE_PATH: ${PLCOPEN_CMAKE_MODULE_PATH}")
include(${PLCOPEN_CMAKE_MODULE_PATH}/plcopen_header.cmake)
include(${PLCOPEN_CMAKE_MODULE_PATH}/plcopen_motion_deps.cmake)
include(${PLCOPEN_CMAKE_MODULE_PATH}/xenomai_flags.cmake)
include(${PLCOPEN_CMAKE_MODULE_PATH}/set_install_directories.cmake)
include(${PLCOPEN_CMAKE_MODULE_PATH}/find_rtmotion.cmake)
include(${PLCOPEN_CMAKE_MODULE_PATH}/find_igh.cmake)
include(${PLCOPEN_CMAKE_MODULE_PATH}/find_enablekit.cmake)
include(${PLCOPEN_CMAKE_MODULE_PATH}/find_plcopen_servo.cmake)
# Include headers
include_directories(include)
add_subdirectory(src)
add_subdirectory(test)
install(
DIRECTORY include/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
INSTALL(FILES
plot_histogram.py
plot_time_series.py
setup_pmu.sh
DESTINATION ${INSTALL_BINDIR}
)