Mercurial > hg > orthanc
comparison CMakeLists.txt @ 1407:d371a66972a4
OrthancPluginGetExpectedDatabaseVersion
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 03 Jun 2015 10:19:13 +0200 |
parents | 1c8df4424437 |
children | 823e82ee43bb |
comparison
equal
deleted
inserted
replaced
1406:d29e56f59dcf | 1407:d371a66972a4 |
---|---|
2 | 2 |
3 project(Orthanc) | 3 project(Orthanc) |
4 | 4 |
5 # Version of the build, should always be "mainline" except in release branches | 5 # Version of the build, should always be "mainline" except in release branches |
6 set(ORTHANC_VERSION "mainline") | 6 set(ORTHANC_VERSION "mainline") |
7 | |
8 # Version of the database schema. History: | |
9 # * Orthanc 0.1.0 -> Orthanc 0.3.0 = no versioning | |
10 # * Orthanc 0.3.1 = version 2 | |
11 # * Orthanc 0.4.0 -> Orthanc 0.7.2 = version 3 | |
12 # * Orthanc 0.7.3 -> Orthanc 0.8.4 = version 4 | |
13 # * Orthanc 0.8.5 -> mainline = version 5 | |
14 set(ORTHANC_DATABASE_VERSION 5) | |
7 | 15 |
8 | 16 |
9 ##################################################################### | 17 ##################################################################### |
10 ## CMake parameters tunable at the command line | 18 ## CMake parameters tunable at the command line |
11 ##################################################################### | 19 ##################################################################### |
306 endif() | 314 endif() |
307 | 315 |
308 | 316 |
309 add_definitions( | 317 add_definitions( |
310 -DORTHANC_VERSION="${ORTHANC_VERSION}" | 318 -DORTHANC_VERSION="${ORTHANC_VERSION}" |
319 -DORTHANC_DATABASE_VERSION=${ORTHANC_DATABASE_VERSION} | |
311 ) | 320 ) |
312 | 321 |
313 list(LENGTH OPENSSL_SOURCES OPENSSL_SOURCES_LENGTH) | 322 list(LENGTH OPENSSL_SOURCES OPENSSL_SOURCES_LENGTH) |
314 if (${OPENSSL_SOURCES_LENGTH} GREATER 0) | 323 if (${OPENSSL_SOURCES_LENGTH} GREATER 0) |
315 add_library(OpenSSL STATIC ${OPENSSL_SOURCES}) | 324 add_library(OpenSSL STATIC ${OPENSSL_SOURCES}) |