comparison Plugins/Samples/Common/OrthancPlugins.cmake @ 3786:3801435e34a1 SylvainRouquette/fix-issue169-95b752c

integration Orthanc-1.6.0->SylvainRouquette
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 19 Mar 2020 11:48:30 +0100
parents 6fbc2f97de3a
children
comparison
equal deleted inserted replaced
3785:763533d6dd67 3786:3801435e34a1
18 # Linking with "pthread" is necessary, otherwise the software crashes 18 # Linking with "pthread" is necessary, otherwise the software crashes
19 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17 19 # http://sourceware.org/bugzilla/show_bug.cgi?id=10652#c17
20 link_libraries(dl rt pthread) 20 link_libraries(dl rt pthread)
21 endif() 21 endif()
22 22
23
24 include_directories(${SAMPLES_ROOT}/../Include/) 23 include_directories(${SAMPLES_ROOT}/../Include/)
25 24
26
27 if (MSVC) 25 if (MSVC)
28 include_directories(${SAMPLES_ROOT}/../../Resources/ThirdParty/VisualStudio/) 26 if (MSVC_VERSION LESS 1600)
27 # Starting with Visual Studio >= 2010 (i.e. macro _MSC_VER >=
28 # 1600), Microsoft ships a standard-compliant <stdint.h>
29 # header. For earlier versions of Visual Studio, give access to a
30 # compatibility header.
31 # http://stackoverflow.com/a/70630/881731
32 # https://en.wikibooks.org/wiki/C_Programming/C_Reference/stdint.h#External_links
33 include_directories(${SAMPLES_ROOT}/../../Resources/ThirdParty/VisualStudio/)
34 endif()
29 endif() 35 endif()
30 36
31
32 add_definitions(-DHAS_ORTHANC_EXCEPTION=0) 37 add_definitions(-DHAS_ORTHANC_EXCEPTION=0)