Mercurial > hg > orthanc
comparison OrthancFramework/SharedLibrary/CMakeLists.txt @ 5073:859f3668c181
replaced macro "#warning" by "#pragma message" for Visual Studio
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 16 Aug 2022 11:06:25 +0200 |
parents | 2e3006382c22 |
children | fa3699115b48 |
comparison
equal
deleted
inserted
replaced
5072:b23a4bb18065 | 5073:859f3668c181 |
---|---|
506 -DLSB_CC=${LSB_CC} | 506 -DLSB_CC=${LSB_CC} |
507 -DLSB_CXX=${LSB_CXX} | 507 -DLSB_CXX=${LSB_CXX} |
508 ) | 508 ) |
509 endif() | 509 endif() |
510 | 510 |
511 if (STATIC_BUILD OR NOT USE_SYSTEM_DCMTK) | |
512 list(APPEND Flags | |
513 # This is necessary to compile "dcmtk/dcmdata/dctagkey.h" because of | |
514 # macro "DCMTK_DIAGNOSTIC_IGNORE_ATTRIBUTE_REDECLARATION" | |
515 -DCMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES=${DCMTK_SOURCES_DIR}/ofstd/include | |
516 ) | |
517 endif() | |
518 | |
511 # Build the unit tests, linking them against the just-created | 519 # Build the unit tests, linking them against the just-created |
512 # "OrthancFramework" library | 520 # "OrthancFramework" library |
513 externalproject_add(UnitTests | 521 externalproject_add(UnitTests |
514 SOURCE_DIR "${CMAKE_SOURCE_DIR}/../UnitTestsSources" | 522 SOURCE_DIR "${CMAKE_SOURCE_DIR}/../UnitTestsSources" |
515 CMAKE_ARGS | 523 CMAKE_ARGS |