annotate Plugins/Samples/Common/OrthancPlugins.cmake @ 2665:389d050a2e66 jobs

fix deadlock, speed up unit tests
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 08 Jun 2018 13:51:31 +0200
parents 395522e46b2b
children 4a8e8a96b233
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
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
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
11 if (CMAKE_COMPILER_IS_GNUCXX)
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
12 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic")
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
13 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic")
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
14 endif()
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
15
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
16
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
17 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
18 # Linking with "pthread" is necessary, otherwise the software crashes
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
19 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17
2138
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1669
diff changeset
20 link_libraries(dl rt pthread)
1395
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
21 endif()
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
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
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
25
1669
a412ad57f0f9 refactoring of sample plugins, OrthancPluginReconstructMainDicomTags
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 1647
diff changeset
26
1395
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
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
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
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)