Mercurial > hg > orthanc-databases
comparison Resources/CMake/DatabasesPluginConfiguration.cmake @ 129:534759b0cf14
use of macros to report performance warnings
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 Feb 2019 20:12:29 +0100 |
parents | 121ab36c87bd |
children | 4cd7e45b671e |
comparison
equal
deleted
inserted
replaced
128:39b2f29ddf3c | 129:534759b0cf14 |
---|---|
42 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK") | 42 message(FATAL_ERROR "Please install the headers of the Orthanc plugins SDK") |
43 endif() | 43 endif() |
44 endif() | 44 endif() |
45 | 45 |
46 | 46 |
47 if (NOT DEFINED ORTHANC_OPTIMAL_VERSION_MAJOR) | |
48 message(FATAL_ERROR "ORTHANC_OPTIMAL_VERSION_MAJOR is not defined") | |
49 endif() | |
50 | |
51 if (NOT DEFINED ORTHANC_OPTIMAL_VERSION_MINOR) | |
52 message(FATAL_ERROR "ORTHANC_OPTIMAL_VERSION_MINOR is not defined") | |
53 endif() | |
54 | |
55 if (NOT DEFINED ORTHANC_OPTIMAL_VERSION_REVISION) | |
56 message(FATAL_ERROR "ORTHANC_OPTIMAL_VERSION_REVISION is not defined") | |
57 endif() | |
58 | |
59 | |
47 add_definitions( | 60 add_definitions( |
48 -DHAS_ORTHANC_EXCEPTION=1 | 61 -DHAS_ORTHANC_EXCEPTION=1 |
49 -DORTHANC_ENABLE_PLUGINS=1 | 62 -DORTHANC_ENABLE_PLUGINS=1 |
63 -DORTHANC_OPTIMAL_VERSION_MAJOR=${ORTHANC_OPTIMAL_VERSION_MAJOR} | |
64 -DORTHANC_OPTIMAL_VERSION_MINOR=${ORTHANC_OPTIMAL_VERSION_MINOR} | |
65 -DORTHANC_OPTIMAL_VERSION_REVISION=${ORTHANC_OPTIMAL_VERSION_REVISION} | |
50 ) | 66 ) |
51 | 67 |
52 | 68 |
53 list(APPEND DATABASES_SOURCES | 69 list(APPEND DATABASES_SOURCES |
54 ${ORTHANC_CORE_SOURCES} | 70 ${ORTHANC_CORE_SOURCES} |