Mercurial > hg > orthanc
diff OrthancServer/CMakeLists.txt @ 5268:cdeb7f027c1b db-protobuf
integration mainline->db-protobuf
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 12 Apr 2023 18:04:24 +0200 |
parents | a856daf71745 043bf0958614 |
children | 7cb1b851f5c8 |
line wrap: on
line diff
--- a/OrthancServer/CMakeLists.txt Wed Apr 12 17:56:13 2023 +0200 +++ b/OrthancServer/CMakeLists.txt Wed Apr 12 18:04:24 2023 +0200 @@ -337,6 +337,8 @@ # headers might get broken! if (MSVC) + add_definitions(-DORTHANC_USE_PRECOMPILED_HEADERS=1) + set(TMP ${ORTHANC_CORE_SOURCES_INTERNAL} ${ORTHANC_DICOM_SOURCES_INTERNAL} @@ -376,13 +378,6 @@ ${AUTOGENERATED_SOURCES} ) -if (MSVC) - set_target_properties( - CoreLibrary - PROPERTIES COMPILE_DEFINITIONS "ORTHANC_USE_PRECOMPILED_HEADERS=1" - ) -endif() - add_dependencies(CoreLibrary AutogeneratedTarget) if (LIBICU_LIBRARIES) @@ -424,13 +419,6 @@ ${ORTHANC_SERVER_SOURCES} ) -if (MSVC) - set_target_properties( - ServerLibrary - PROPERTIES COMPILE_DEFINITIONS "ORTHANC_USE_PRECOMPILED_HEADERS=1" - ) -endif() - # Ensure autogenerated code is built before building ServerLibrary add_dependencies(ServerLibrary CoreLibrary OrthancDatabaseProtobuf) @@ -469,13 +457,6 @@ ${BOOST_EXTENDED_SOURCES} ) -if (MSVC) - set_target_properties( - UnitTests - PROPERTIES COMPILE_DEFINITIONS "ORTHANC_USE_PRECOMPILED_HEADERS=1" - ) -endif() - target_link_libraries(UnitTests ServerLibrary CoreLibrary