-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
32 lines (27 loc) · 906 Bytes
/
CMakeLists.txt
File metadata and controls
32 lines (27 loc) · 906 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
28
29
30
31
32
project(integration_example)
# Create the example executable
add_executable(${PROJECT_NAME}
integration_example.cpp
mock_logger.h
mock_monitoring.h
)
# Link against required libraries
target_link_libraries(${PROJECT_NAME} PRIVATE
thread_base
interfaces
utilities
)
# Include new headers for interfaces, core and thread_pool
target_include_directories(${PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/../../interfaces
${CMAKE_CURRENT_SOURCE_DIR}/../../implementations/thread_pool/include
${CMAKE_CURRENT_SOURCE_DIR}/../../core/base/include
${CMAKE_CURRENT_SOURCE_DIR}/../../core/jobs/include
${CMAKE_CURRENT_SOURCE_DIR}/../../core/sync/include
)
# Set output directory
set_target_properties(${PROJECT_NAME} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
# Set C++ standard
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)