1cmake_minimum_required(VERSION 3.13) 2 3project(agl_watchdog CXX) 4 5set(_trout_WATCHDOG_CXX_FLAGS_ -Wall -Werror -std=c++17) 6 7add_executable(watchdog_test_service watchdog.cpp test/service.cpp) 8target_compile_options(watchdog_test_service PRIVATE ${_trout_WATCHDOG_CXX_FLAGS_}) 9target_include_directories(watchdog_test_service PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) 10target_link_libraries(watchdog_test_service systemd pthread) 11