Mercurial > hg > orthanc-indexer
changeset 19:e1d11da24560
fixed handling of DefineSourceBasenameForTarget
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 Dec 2023 21:57:07 +0100 |
parents | 0cab0ea2436e |
children | ca40236fda57 |
files | CMakeLists.txt |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Tue Nov 21 20:28:12 2023 +0100 +++ b/CMakeLists.txt Wed Dec 20 21:57:07 2023 +0100 @@ -142,8 +142,6 @@ ${ORTHANC_CORE_SOURCES} ) -DefineSourceBasenameForTarget(OrthancIndexer) - add_dependencies(OrthancIndexer AutogeneratedTarget) add_executable(UnitTests @@ -157,8 +155,6 @@ ${GOOGLE_TEST_SOURCES} ) -DefineSourceBasenameForTarget(UnitTests) - add_dependencies(UnitTests AutogeneratedTarget) target_link_libraries(UnitTests ${GOOGLE_TEST_LIBRARIES}) @@ -175,3 +171,8 @@ RUNTIME DESTINATION lib # Destination for Windows LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux ) + +if (COMMAND DefineSourceBasenameForTarget) + DefineSourceBasenameForTarget(OrthancIndexer) + DefineSourceBasenameForTarget(UnitTests) +endif()