comparison CMakeLists.txt @ 1578:09715095fc53

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 15:33:36 +0200
parents de54c19fc44d
children 334d3a92ed83
comparison
equal deleted inserted replaced
1577:7aac0cddd42e 1578:09715095fc53
132 Core/SQLite/Transaction.cpp 132 Core/SQLite/Transaction.cpp
133 Core/Toolbox.cpp 133 Core/Toolbox.cpp
134 Core/Uuid.cpp 134 Core/Uuid.cpp
135 Core/Lua/LuaContext.cpp 135 Core/Lua/LuaContext.cpp
136 Core/Lua/LuaFunctionCall.cpp 136 Core/Lua/LuaFunctionCall.cpp
137
138 Plugins/Engine/SharedLibrary.cpp
139 Plugins/Engine/PluginsManager.cpp
140 ) 137 )
141 138
142 139
143 set(ORTHANC_SERVER_SOURCES 140 set(ORTHANC_SERVER_SOURCES
144 OrthancServer/DicomProtocol/DicomFindAnswers.cpp 141 OrthancServer/DicomProtocol/DicomFindAnswers.cpp
176 OrthancServer/ResourceFinder.cpp 173 OrthancServer/ResourceFinder.cpp
177 OrthancServer/DicomFindQuery.cpp 174 OrthancServer/DicomFindQuery.cpp
178 OrthancServer/QueryRetrieveHandler.cpp 175 OrthancServer/QueryRetrieveHandler.cpp
179 OrthancServer/LuaScripting.cpp 176 OrthancServer/LuaScripting.cpp
180 OrthancServer/OrthancHttpHandler.cpp 177 OrthancServer/OrthancHttpHandler.cpp
181 Plugins/Engine/OrthancPlugins.cpp
182 Plugins/Engine/OrthancPluginDatabase.cpp
183 178
184 # From "lua-scripting" branch 179 # From "lua-scripting" branch
185 OrthancServer/DicomInstanceToStore.cpp 180 OrthancServer/DicomInstanceToStore.cpp
186 OrthancServer/Scheduler/DeleteInstanceCommand.cpp 181 OrthancServer/Scheduler/DeleteInstanceCommand.cpp
187 OrthancServer/Scheduler/ModifyInstanceCommand.cpp 182 OrthancServer/Scheduler/ModifyInstanceCommand.cpp
209 UnitTestsSources/LuaTests.cpp 204 UnitTestsSources/LuaTests.cpp
210 UnitTestsSources/MultiThreadingTests.cpp 205 UnitTestsSources/MultiThreadingTests.cpp
211 UnitTestsSources/UnitTestsMain.cpp 206 UnitTestsSources/UnitTestsMain.cpp
212 UnitTestsSources/ImageProcessingTests.cpp 207 UnitTestsSources/ImageProcessingTests.cpp
213 UnitTestsSources/JpegLosslessTests.cpp 208 UnitTestsSources/JpegLosslessTests.cpp
214 UnitTestsSources/PluginsTests.cpp
215 UnitTestsSources/StreamTests.cpp 209 UnitTestsSources/StreamTests.cpp
216 ) 210 )
217 211
218 212
219 set(SERVE_FOLDERS_SOURCES 213 if (ENABLE_PLUGINS)
220 Plugins/Samples/ServeFolders/Plugin.cpp 214 list(APPEND ORTHANC_SERVER_SOURCES
221 ) 215 Plugins/Engine/OrthancPluginDatabase.cpp
216 Plugins/Engine/OrthancPlugins.cpp
217 Plugins/Engine/PluginsManager.cpp
218 Plugins/Engine/SharedLibrary.cpp
219 )
220
221 list(APPEND ORTHANC_UNIT_TESTS_SOURCES
222 UnitTestsSources/PluginsTests.cpp
223 )
224
225 set(SERVE_FOLDERS_SOURCES
226 Plugins/Samples/ServeFolders/Plugin.cpp
227 )
228 endif()
222 229
223 230
224 set(ORTHANC_EMBEDDED_FILES 231 set(ORTHANC_EMBEDDED_FILES
225 PREPARE_DATABASE ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/PrepareDatabase.sql 232 PREPARE_DATABASE ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/PrepareDatabase.sql
226 UPGRADE_DATABASE_3_TO_4 ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/Upgrade3To4.sql 233 UPGRADE_DATABASE_3_TO_4 ${CMAKE_CURRENT_SOURCE_DIR}/OrthancServer/Upgrade3To4.sql
455 462
456 ##################################################################### 463 #####################################################################
457 ## Build the "ServeFolders" plugin 464 ## Build the "ServeFolders" plugin
458 ##################################################################### 465 #####################################################################
459 466
460 add_definitions(-DSERVE_FOLDERS_VERSION="${ORTHANC_VERSION}") 467 if (ENABLE_PLUGINS)
461 468 add_definitions(-DSERVE_FOLDERS_VERSION="${ORTHANC_VERSION}")
462 include_directories(${CMAKE_SOURCE_DIR}/Plugins/Include) 469
463 470 include_directories(${CMAKE_SOURCE_DIR}/Plugins/Include)
464 add_library( 471
465 ServeFolders SHARED 472 add_library(
466 ${SERVE_FOLDERS_SOURCES} 473 ServeFolders SHARED
467 ${JSONCPP_SOURCES} 474 ${SERVE_FOLDERS_SOURCES}
468 ) 475 ${JSONCPP_SOURCES}
469 476 )
470 set_target_properties( 477
471 ServeFolders PROPERTIES 478 set_target_properties(
472 VERSION ${ORTHANC_VERSION} 479 ServeFolders PROPERTIES
473 SOVERSION ${ORTHANC_VERSION} 480 VERSION ${ORTHANC_VERSION}
474 ) 481 SOVERSION ${ORTHANC_VERSION}
475 482 )
476 install( 483
477 TARGETS ServeFolders 484 install(
478 RUNTIME DESTINATION lib # Destination for Windows 485 TARGETS ServeFolders
479 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux 486 RUNTIME DESTINATION lib # Destination for Windows
480 ) 487 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux
481 488 )
489 endif()
482 490
483 491
484 492
485 ##################################################################### 493 #####################################################################
486 ## Generate the documentation if Doxygen is present 494 ## Generate the documentation if Doxygen is present
522 530
523 ##################################################################### 531 #####################################################################
524 ## Install the plugin SDK 532 ## Install the plugin SDK
525 ##################################################################### 533 #####################################################################
526 534
527 install( 535 if (ENABLE_PLUGINS)
528 FILES 536 install(
529 Plugins/Include/orthanc/OrthancCPlugin.h 537 FILES
530 Plugins/Include/orthanc/OrthancCDatabasePlugin.h 538 Plugins/Include/orthanc/OrthancCPlugin.h
531 Plugins/Include/orthanc/OrthancCppDatabasePlugin.h 539 Plugins/Include/orthanc/OrthancCDatabasePlugin.h
532 DESTINATION include/orthanc 540 Plugins/Include/orthanc/OrthancCppDatabasePlugin.h
533 ) 541 DESTINATION include/orthanc
542 )
543 endif()
534 544
535 545
536 546
537 ##################################################################### 547 #####################################################################
538 ## Prepare the "uninstall" target 548 ## Prepare the "uninstall" target