Mercurial > hg > orthanc
annotate Plugins/Samples/Common/OrthancPlugins.cmake @ 3520:77bede920d22
merge
author | amazy |
---|---|
date | Thu, 19 Sep 2019 13:11:11 +0200 |
parents | 4a8e8a96b233 |
children | 6fbc2f97de3a |
rev | line source |
---|---|
3373
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
1 set(ORTHANC_ROOT ${SAMPLES_ROOT}/../..) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
2 include(CheckIncludeFiles) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
3 include(CheckIncludeFileCXX) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
4 include(CheckLibraryExists) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
5 include(FindPythonInterp) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
6 include(${ORTHANC_ROOT}/Resources/CMake/AutoGeneratedCode.cmake) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
7 include(${ORTHANC_ROOT}/Resources/CMake/DownloadPackage.cmake) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
8 include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
9 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
10 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
11 if (CMAKE_COMPILER_IS_GNUCXX) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
12 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic") |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
13 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic") |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
14 endif() |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
15 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
16 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
17 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
18 # Linking with "pthread" is necessary, otherwise the software crashes |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
19 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
20 link_libraries(dl rt pthread) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
21 endif() |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
22 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
23 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
24 include_directories(${SAMPLES_ROOT}/../Include/) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
25 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
26 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
27 if (MSVC) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
28 include_directories(${SAMPLES_ROOT}/../../Resources/ThirdParty/VisualStudio/) |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
29 endif() |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
30 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
31 |
4a8e8a96b233
Fixed CRLF to LF in various files (found through grepping the source tree)
Benjamin Golinvaux <bgo@osimis.io>
parents:
2205
diff
changeset
|
32 add_definitions(-DHAS_ORTHANC_EXCEPTION=0) |