Mercurial > hg > orthanc
annotate Plugins/Samples/Common/OrthancPlugins.cmake @ 3128:972cc98959a3 db-changes
fix build of civetweb for Visual Studio 2008 and LSB
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Jan 2019 12:14:30 +0100 |
parents | 395522e46b2b |
children | 4a8e8a96b233 |
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 | |
2138 | 20 link_libraries(dl rt pthread) |
1395 | 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() |
2176
fead5549aaa7
introduction of HAS_ORTHANC_EXCEPTION to avoid PluginException if not necessary
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2138
diff
changeset
|
30 |
fead5549aaa7
introduction of HAS_ORTHANC_EXCEPTION to avoid PluginException if not necessary
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2138
diff
changeset
|
31 |
2205
395522e46b2b
refactoring of the worklist sample using OrthancPluginCppWrapper
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
2176
diff
changeset
|
32 add_definitions(-DHAS_ORTHANC_EXCEPTION=0) |