-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
60 lines (52 loc) · 2.3 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# SmartCGMS - continuous glucose monitoring and controlling framework
# https://diabetes.zcu.cz/
#
# Copyright (c) since 2018 University of West Bohemia.
#
# Contact:
# Medical Informatics, Department of Computer Science and Engineering
# Faculty of Applied Sciences, University of West Bohemia
# Univerzitni 8, 301 00 Pilsen
# Czech Republic
#
#
# Purpose of this software:
# This software is intended to demonstrate work of the diabetes.zcu.cz research
# group to other scientists, to complement our published papers. It is strictly
# prohibited to use this software for diagnosis or treatment of any medical condition,
# without obtaining all required approvals from respective regulatory bodies.
#
# Especially, a diabetic patient is warned that unauthorized use of this software
# may result into severe injure, including death.
#
#
# Licensing terms:
# Unless required by applicable law or agreed to in writing, software
# distributed under these license terms is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
# a) This file is available under the Apache License, Version 2.0.
# b) When publishing any derivative work or results obtained using this software, you agree to cite the following paper:
# Tomas Koutny and Martin Ubl, "SmartCGMS as a Testbed for a Blood-Glucose Level Prediction and/or
# Control Challenge with (an FDA-Accepted) Diabetic Patient Simulation", Procedia Computer Science,
# Volume 177, pp. 354-362, 2020
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
PROJECT("scgms-wrappers")
SET(SMARTCGMS_COMMON_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../common/" CACHE PATH "SmartCGMS 'common' directory location")
INCLUDE("${SMARTCGMS_COMMON_DIR}/cmake/Functions.cmake")
DISCOVER_DEPENDENCIES()
INCLUDE_DIRECTORIES("${SMARTCGMS_COMMON_DIR}/")
# Add all subdirectories containing CMakeLists
SUBDIRLIST(WRAPPER_LIB_DIRS "${CMAKE_CURRENT_SOURCE_DIR}")
FOREACH(subdir ${WRAPPER_LIB_DIRS})
# ignore git index directory
IF(NOT "${subdir}" STREQUAL ".git")
IF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${subdir}/CMakeLists.txt")
MESSAGE(STATUS "Configuring wrapper module: ${subdir}")
ADD_SUBDIRECTORY(${subdir})
ELSE()
MESSAGE(WARNING "Wrapper module '${subdir}' does not contain CMakeLists.txt file")
ENDIF()
ENDIF()
ENDFOREACH()