ranczo-io/services/floorheat_svc/CMakeLists.txt
2025-08-06 14:16:44 +02:00

32 lines
808 B
CMake

add_executable(ranczo-io_floorheating
main.cpp
heater_controller.cpp
relay.cpp
)
target_link_libraries(ranczo-io_floorheating
PUBLIC
ranczo-io::utils
)
include(GNUInstallDirs)
install(
TARGETS ranczo-io_floorheating
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
enable_testing()
add_test(NAME ranczo_io_floorheating_integration
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/integration_tests/run_docker_integration_tests.sh
)
set_tests_properties(ranczo_io_floorheating_integration PROPERTIES
ENVIRONMENT INSTALL_DIR=${CMAKE_BINARY_DIR}/install
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/integration_tests
TIMEOUT 120
)