29 lines
840 B
CMake
29 lines
840 B
CMake
cmake_minimum_required(VERSION 3.20...4.0)
|
|
project(
|
|
pipe
|
|
VERSION 0.1.0
|
|
LANGUAGES CXX)
|
|
|
|
# dependencies
|
|
find_package(Boost REQUIRED COMPONENTS fiber headers)
|
|
find_package(fmt REQUIRED)
|
|
add_subdirectory(external/pipeline)
|
|
add_subdirectory(external/pipes)
|
|
|
|
# Specify the include directories include_directories(include)
|
|
|
|
add_library(pipe INTERFACE)
|
|
target_compile_features(pipe INTERFACE cxx_std_23)
|
|
target_include_directories(pipe INTERFACE include)
|
|
|
|
add_executable(pipeline_asio src/pipeline/main.cpp)
|
|
target_compile_features(pipeline_asio PUBLIC cxx_std_23)
|
|
target_link_libraries(pipeline_asio Boost::fiber Boost::headers fmt::fmt
|
|
pipeline::pipeline joboccara::pipes)
|
|
|
|
# Specify the location of the header files
|
|
# target_include_directories(pipeline_asio PUBLIC include)
|
|
|
|
enable_testing()
|
|
add_subdirectory(tests)
|