Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPlugins.cmake @ 1425:97268448bdfc
refactoring of samples
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 Jun 2015 16:23:27 +0200 |
parents | dae2e28951c6 |
children | fe458dde986e |
comparison
equal
deleted
inserted
replaced
1424:fe384a9d3b51 | 1425:97268448bdfc |
---|---|
1 include(CheckIncludeFiles) | |
1 include(CheckLibraryExists) | 2 include(CheckLibraryExists) |
2 include(${ORTHANC_ROOT}/Resources/CMake/Compiler.cmake) | |
3 | 3 |
4 | 4 |
5 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | 5 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") |
6 link_libraries(uuid) | 6 link_libraries(uuid) |
7 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread") | 7 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread") |
20 endif() | 20 endif() |
21 endif () | 21 endif () |
22 | 22 |
23 | 23 |
24 if (CMAKE_COMPILER_IS_GNUCXX) | 24 if (CMAKE_COMPILER_IS_GNUCXX) |
25 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${ORTHANC_ROOT}/Plugins/Samples/Common/VersionScript.map -Wl,--no-undefined") | 25 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--version-script=${SAMPLES_ROOT}/Common/VersionScript.map -Wl,--no-undefined") |
26 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic") | 26 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic") |
27 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic") | 27 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic") |
28 endif() | 28 endif() |
29 | 29 |
30 | 30 |
33 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17 | 33 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17 |
34 link_libraries(dl rt) | 34 link_libraries(dl rt) |
35 endif() | 35 endif() |
36 | 36 |
37 | 37 |
38 include_directories(${ORTHANC_ROOT}/Plugins/Include/) | 38 include_directories(${SAMPLES_ROOT}/../Include/) |
39 | 39 |
40 if (MSVC) | 40 if (MSVC) |
41 include_directories(${ORTHANC_ROOT}/Resources/ThirdParty/VisualStudio/) | 41 include_directories(${SAMPLES_ROOT}/../../Resources/ThirdParty/VisualStudio/) |
42 endif() | 42 endif() |