Zadania rekrutacyjne i ćwiczeniowe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
535 B

cmake_minimum_required(VERSION 3.5)
project(thread LANGUAGES C VERSION 0.1.0)
set(C_STANDARD 11)
set(TARGET ${PROJECT_NAME})
set(CMAKE_INCLUDE_CURRENT_DIR ON)
enable_testing()
add_library(${TARGET}
src/core/TaskQueue.c
src/infrastructure/Thread.c
src/infrastructure/QueuedThread.c
src/infrastructure/Watchdog.c
src/infrastructure/PtBlocker.c
)
target_include_directories(${TARGET}
PRIVATE
src
PUBLIC
include
)
if (${BUILD_TESTS})
add_subdirectory(tests/unit)
add_subdirectory(tests/integration)
endif()