-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
15 lines (13 loc) · 1.22 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cmake_minimum_required(VERSION 3.23)
project(Sampling)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_FLAGS "-O3")
find_package(util_c REQUIRED)
add_library(Sampling src/Bootstrap.c src/Bootstrap.h src/KFoldCrossValidation.c src/KFoldCrossValidation.h src/StratifiedKFoldCrossValidation.c src/StratifiedKFoldCrossValidation.h)
target_link_libraries(Sampling util_c::util_c)
add_executable(BootstrapTest src/Bootstrap.c src/Bootstrap.h src/KFoldCrossValidation.c src/KFoldCrossValidation.h src/StratifiedKFoldCrossValidation.c src/StratifiedKFoldCrossValidation.h Test/BootstrapTest.c)
target_link_libraries(BootstrapTest util_c::util_c)
add_executable(KFoldCrossValidationTest src/Bootstrap.c src/Bootstrap.h src/KFoldCrossValidation.c src/KFoldCrossValidation.h src/StratifiedKFoldCrossValidation.c src/StratifiedKFoldCrossValidation.h Test/KFoldCrossValidationTest.c)
target_link_libraries(KFoldCrossValidationTest util_c::util_c)
add_executable(StratifiedKFoldCrossValidationTest src/Bootstrap.c src/Bootstrap.h src/KFoldCrossValidation.c src/KFoldCrossValidation.h src/StratifiedKFoldCrossValidation.c src/StratifiedKFoldCrossValidation.h Test/StratifiedKFoldCrossValidationTest.c)
target_link_libraries(StratifiedKFoldCrossValidationTest util_c::util_c)