-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
73 lines (64 loc) · 2.93 KB
/
CMakeLists.txt
File metadata and controls
73 lines (64 loc) · 2.93 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
# SmartCGMS - continuous glucose monitoring and controlling framework
# https://diabetes.zcu.cz/
#
# Copyright (c) since 2018 University of West Bohemia.
#
# Contact:
# diabetes@mail.kiv.zcu.cz
# 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-examples")
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 from entities and frontends containing CMakeLists
SUBDIRLIST(ENTITIES_SUBDIRS "${CMAKE_CURRENT_SOURCE_DIR}/entities")
FOREACH(subdir ${ENTITIES_SUBDIRS})
# ignore git index directory
IF(NOT "${subdir}" STREQUAL ".git")
IF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/entities/${subdir}/CMakeLists.txt")
MESSAGE(STATUS "Configuring example entity module: ${subdir}")
ADD_SUBDIRECTORY("entities/${subdir}")
ELSE()
MESSAGE(WARNING "Example entity module '${subdir}' does not contain CMakeLists.txt file")
ENDIF()
ENDIF()
ENDFOREACH()
SUBDIRLIST(FRONTENDS_SUBDIRS "${CMAKE_CURRENT_SOURCE_DIR}/frontends")
FOREACH(subdir ${FRONTENDS_SUBDIRS})
# ignore git index directory
IF(NOT "${subdir}" STREQUAL ".git")
IF(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/frontends/${subdir}/CMakeLists.txt")
MESSAGE(STATUS "Configuring example frontend module: ${subdir}")
ADD_SUBDIRECTORY("frontends/${subdir}")
ELSE()
MESSAGE(WARNING "Example frontend module '${subdir}' does not contain CMakeLists.txt file")
ENDIF()
ENDIF()
ENDFOREACH()