cmake_minimum_required (VERSION 2.6) set(CMAKE_BUILD_TYPE DEBUG) # TODO: make this repo public # TODO: add the possibility to build as library set(SOFTWAREWATCHDOG_SOURCE_FILES software_watchdog.c ) add_library (software-watchdog ${SOFTWAREWATCHDOG_SOURCE_FILES}) target_include_directories (software-watchdog PUBLIC ../include) if(UNIX) target_link_libraries(software-watchdog PUBLIC rt) endif(UNIX)