Mercurial > hg > orthanc
annotate Plugins/Samples/Common/OrthancPlugins.cmake @ 1949:d90f737f2dde
warn about the use of privileged ports
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 05 Apr 2016 10:30:17 +0200 |
parents | a412ad57f0f9 |
children | 41b70d5b44c9 |
rev | line source |
---|---|
1669
a412ad57f0f9
refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1647
diff
changeset
|
1 set(ORTHANC_ROOT ${SAMPLES_ROOT}/../..) |
1425
97268448bdfc
refactoring of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1405
diff
changeset
|
2 include(CheckIncludeFiles) |
1669
a412ad57f0f9
refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1647
diff
changeset
|
3 include(CheckIncludeFileCXX) |
1395 | 4 include(CheckLibraryExists) |
1669
a412ad57f0f9
refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1647
diff
changeset
|
5 include(FindPythonInterp) |
a412ad57f0f9
refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1647
diff
changeset
|
6 include(${ORTHANC_ROOT}/Resources/CMake/AutoGeneratedCode.cmake) |
a412ad57f0f9
refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1647
diff
changeset
|
7 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) |
a412ad57f0f9
refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1647
diff
changeset
|
8 include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake) |
1647
fe458dde986e
hide symbols in plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1425
diff
changeset
|
9 |
fe458dde986e
hide symbols in plugins
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1425
diff
changeset
|
10 |
1395 | 11 if (CMAKE_COMPILER_IS_GNUCXX) |
12 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic") | |
13 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic") | |
14 endif() | |
15 | |
16 | |
17 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | |
18 # Linking with "pthread" is necessary, otherwise the software crashes | |
19 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17 | |
20 link_libraries(dl rt) | |
21 endif() | |
22 | |
1669
a412ad57f0f9
refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1647
diff
changeset
|
23 |
1425
97268448bdfc
refactoring of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1405
diff
changeset
|
24 include_directories(${SAMPLES_ROOT}/../Include/) |
1395 | 25 |
1669
a412ad57f0f9
refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1647
diff
changeset
|
26 |
1395 | 27 if (MSVC) |
1425
97268448bdfc
refactoring of samples
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1405
diff
changeset
|
28 include_directories(${SAMPLES_ROOT}/../../Resources/ThirdParty/VisualStudio/) |
1395 | 29 endif() |