-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (23 loc) · 790 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
30 lines (23 loc) · 790 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
cmake_minimum_required(VERSION 3.14)
project(EventServer)
set(CMAKE_CXX_STANDARD 17)
# En début de CMakeLists.txt
option(ENABLE_COVERAGE "Enable coverage reporting" OFF)
if(ENABLE_COVERAGE)
message(STATUS "Building with coverage flags")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g --coverage")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage")
endif()
add_library(eventserver
src/monitoring/CPUMonitorThread.cpp
src/engine/RuleEngine.cpp
src/worker/Worker.cpp
src/network/EpollLoopThread.cpp
src/mock/EventProduction.cpp
)
target_include_directories(eventserver PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
add_subdirectory(tests)
add_executable(EventServerMain src/main.cpp)
target_link_libraries(EventServerMain eventserver)