Mercurial > hg > orthanc
annotate Plugins/Samples/ServeFolders/CMakeLists.txt @ 1391:b3119c32c920
version in ServerFolders plugin
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 29 May 2015 17:32:00 +0200 |
parents | 92da9e1c2daa |
children | 56f613d1df29 |
rev | line source |
---|---|
1322
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 cmake_minimum_required(VERSION 2.8) |
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 |
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 project(ServeFolders) |
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 |
1391
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
5 SET(SERVE_FOLDERS_VERSION "0.0" CACHE STRING "Version of the plugin") |
1390
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
6 SET(ALLOW_DOWNLOADS OFF CACHE BOOL "Allow CMake to download packages") |
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
7 SET(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") |
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
8 |
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
9 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/../../../) |
1323
5a92665dee23
Sample plugin: Serve folders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1322
diff
changeset
|
10 |
1390
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
11 include(CheckIncludeFiles) |
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
12 include(CheckIncludeFileCXX) |
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
13 include(${CMAKE_SOURCE_DIR}/../Common/OrthancPlugins.cmake) |
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
14 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) |
92da9e1c2daa
improvement of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1325
diff
changeset
|
15 include(${ORTHANC_ROOT}/Resources/CMake/JsonCppConfiguration.cmake) |
1322
f497a72d9f71
fixes to the sample plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 |
1325 | 17 add_library(ServeFolders SHARED |
1323
5a92665dee23
Sample plugin: Serve folders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1322
diff
changeset
|
18 Plugin.cpp |
5a92665dee23
Sample plugin: Serve folders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1322
diff
changeset
|
19 ${THIRD_PARTY_SOURCES} |
5a92665dee23
Sample plugin: Serve folders
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1322
diff
changeset
|
20 ) |
1391
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
21 |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
22 |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
23 message("Setting the version of the plugin to ${SERVE_FOLDERS_VERSION}") |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
24 add_definitions(-DSERVE_FOLDERS_VERSION="${SERVE_FOLDERS_VERSION}") |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
25 |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
26 set_target_properties(ServeFolders PROPERTIES |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
27 VERSION ${SERVE_FOLDERS_VERSION} |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
28 SOVERSION ${SERVE_FOLDERS_VERSION}) |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
29 |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
30 install( |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
31 TARGETS ServeFolders |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
32 RUNTIME DESTINATION lib # Destination for Windows |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
33 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux |
b3119c32c920
version in ServerFolders plugin
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1390
diff
changeset
|
34 ) |