Mercurial > hg > orthanc
changeset 5362:78aad3916da4
added more DefineSourceBasenameForTarget()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Jul 2023 19:33:10 +0200 |
parents | 1e3e7c61640b |
children | b5f2122a1334 |
files | OrthancFramework/SharedLibrary/CMakeLists.txt OrthancFramework/UnitTestsSources/CMakeLists.txt |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/SharedLibrary/CMakeLists.txt Tue Jul 11 15:54:57 2023 +0200 +++ b/OrthancFramework/SharedLibrary/CMakeLists.txt Thu Jul 13 19:33:10 2023 +0200 @@ -257,6 +257,8 @@ ${ORTHANC_DICOM_SOURCES} ) + DefineSourceBasenameForTarget(OrthancFramework) + # CMake does not natively handle SIDE_MODULE, and believes that # Emscripten produces a ".js" file (whereas it creates only the # ".wasm"). Create a dummy ".js" for target to work. @@ -273,6 +275,8 @@ DllMain.cpp ) + DefineSourceBasenameForTarget(OrthancFramework) + # By default, hide all the symbols set_target_properties(OrthancFramework PROPERTIES C_VISIBILITY_PRESET hidden) set_target_properties(OrthancFramework PROPERTIES CXX_VISIBILITY_PRESET hidden) @@ -301,6 +305,8 @@ ${ORTHANC_DICOM_SOURCES} ) + DefineSourceBasenameForTarget(OrthancFramework) + # Add the "-fPIC" option to use the static library from Orthanc # plugins (the latter being shared libraries) set_property(TARGET OrthancFramework PROPERTY POSITION_INDEPENDENT_CODE ON)
--- a/OrthancFramework/UnitTestsSources/CMakeLists.txt Tue Jul 11 15:54:57 2023 +0200 +++ b/OrthancFramework/UnitTestsSources/CMakeLists.txt Thu Jul 13 19:33:10 2023 +0200 @@ -109,6 +109,8 @@ ${GOOGLE_TEST_SOURCES} ) +DefineSourceBasenameForTarget(UnitTests) + target_link_libraries(UnitTests ${ORTHANC_FRAMEWORK_LIBRARIES}) install(TARGETS UnitTests