cmake_minimum_required(VERSION 3.0) project(kerstezel-klant) if (MSVC) add_compile_options(/W4 /WX) else() add_compile_options(-Wall -Wextra -pedantic -Werror) endif() add_compile_definitions(LOG_PREFIX="${CMAKE_SOURCE_DIR}") if(SPOOF) add_compile_definitions(SPOOF) endif() set(KERSTEZEL_SOURCES src/kerstezel.c) set(KERSTEZEL_HEADERS src/kerstezel.h) add_executable(kerstezel ${KERSTEZEL_SOURCES} ${KERSTEZEL_HEADERS}) if(NOT SPOOF) target_link_libraries(kerstezel -lbcm2835) endif() install(TARGETS kerstezel DESTINATION sbin)