os_labs/CMakeLists.txt

17 lines
422 B
CMake
Raw Normal View History

2020-04-16 15:15:52 +10:00
cmake_minimum_required(VERSION 3.16)
project(os_labs C)
set(CMAKE_C_STANDARD 11)
function(define_lab lab_name)
add_subdirectory("${lab_name}")
add_custom_target("RUN_${lab_name}" ALL
"${PROJECT_SOURCE_DIR}/scripts/run_all.sh" "${PROJECT_BINARY_DIR}/${lab_name}"
USES_TERMINAL
DEPENDS "${lab_name}"
)
message("${lab_name} defined.")
endfunction()
2020-04-20 00:48:01 +10:00
define_lab(lab2)
define_lab(lab3)