annotate Plugins/Samples/Common/OrthancPlugins.cmake @ 1683:21d31da73374 db-changes

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 Oct 2015 14:44:52 +0200
parents a412ad57f0f9
children 41b70d5b44c9
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
785e01da36a1 fix visual studio
jodogne
parents: 1390
diff changeset
20 link_libraries(dl rt)
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()