comparison SQLite/CMakeLists.txt @ 441:2b797871eff6

handling of DefineSourceBasenameForTarget for MySQL
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 20 Dec 2023 21:30:46 +0100
parents c1b0f3c4e1f5
children ecd0b719cff5
comparison
equal deleted inserted replaced
440:2f654d1038a1 441:2b797871eff6
95 VERSION ${ORTHANC_PLUGIN_VERSION} 95 VERSION ${ORTHANC_PLUGIN_VERSION}
96 SOVERSION ${ORTHANC_PLUGIN_VERSION} 96 SOVERSION ${ORTHANC_PLUGIN_VERSION}
97 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1 97 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
98 ) 98 )
99 99
100 DefineSourceBasenameForTarget(OrthancSQLiteIndex)
101
102 install( 100 install(
103 TARGETS OrthancSQLiteIndex # OrthancSQLiteStorage TODO 101 TARGETS OrthancSQLiteIndex # OrthancSQLiteStorage TODO
104 RUNTIME DESTINATION lib # Destination for Windows 102 RUNTIME DESTINATION lib # Destination for Windows
105 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux 103 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux
106 ) 104 )
118 target_link_libraries(UnitTests ${GOOGLE_TEST_LIBRARIES}) 116 target_link_libraries(UnitTests ${GOOGLE_TEST_LIBRARIES})
119 set_target_properties(UnitTests PROPERTIES 117 set_target_properties(UnitTests PROPERTIES
120 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0 118 COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=0
121 ) 119 )
122 120
123 DefineSourceBasenameForTarget(UnitTests) 121 if (COMMAND DefineSourceBasenameForTarget)
122 DefineSourceBasenameForTarget(OrthancSQLiteIndex)
123 DefineSourceBasenameForTarget(UnitTests)
124 endif()