This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
50 lines (41 loc) · 1.78 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
cmake_minimum_required(VERSION 3.23)
project(curaengine_plugin_gradual_flow)
find_package(standardprojectsettings REQUIRED)
find_package(Protobuf REQUIRED)
find_package(spdlog REQUIRED)
find_package(docopt REQUIRED)
find_package(asio-grpc REQUIRED)
find_package(range-v3 REQUIRED)
find_package(clipper REQUIRED)
find_package(ctre REQUIRED)
find_package(semver REQUIRED)
find_package(curaengine_grpc_definitions REQUIRED)
set(HDRS include/gradual_flow/boost_tags.h
include/gradual_flow/concepts.h
include/gradual_flow/gcode_path.h
include/gradual_flow/point_container.h
include/gradual_flow/utils.h
include/plugin/broadcast.h
include/plugin/cmdline.h
include/plugin/handshake.h
include/plugin/metadata.h
include/plugin/modify.h
include/plugin/plugin.h
include/plugin/settings.h)
add_library(curaengine_plugin_gradual_flow_lib INTERFACE ${HDRS})
use_threads(curaengine_plugin_gradual_flow_lib)
add_executable(curaengine_plugin_gradual_flow src/main.cpp)
use_threads(curaengine_plugin_gradual_flow)
target_include_directories(curaengine_plugin_gradual_flow_lib
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
set(DEPS curaengine_grpc_definitions::curaengine_grpc_definitions clipper::clipper ctre::ctre asio-grpc::asio-grpc protobuf::libprotobuf boost::boost spdlog::spdlog docopt_s range-v3::range-v3 semver::semver)
target_link_libraries(curaengine_plugin_gradual_flow PUBLIC curaengine_plugin_gradual_flow_lib ${DEPS})
option(ENABLE_TESTS "Build with unit test" ON)
if (ENABLE_TESTS)
message(STATUS "curaengine_plugin_gradual_flow: Compiling with Tests")
enable_testing()
add_subdirectory(tests)
endif ()