os_labs/CMakeLists.txt

23 lines
525 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)
2020-04-30 13:55:59 +10:00
define_lab(lab3)
2020-05-20 13:59:23 +10:00
define_lab(lab4)
2020-05-29 02:43:15 +10:00
define_lab(lab5)
2020-06-10 20:30:09 +10:00
define_lab(lab6)
2020-06-11 15:00:19 +10:00
define_lab(lab7)
define_lab(lab9)
define_lab(lab10)