Mercurial > hg > orthanc
comparison OrthancServer/CMakeLists.txt @ 4979:f316413027fd more-tags
renamed DbOptizer into Housekeeper + add Scheduler & triggers
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 25 Apr 2022 15:30:51 +0200 |
parents | d68b3a2cea17 |
children | d0c34145320c |
comparison
equal
deleted
inserted
replaced
4978:2cfa50d8eb60 | 4979:f316413027fd |
---|---|
57 set(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)") | 57 set(STANDALONE_BUILD ON CACHE BOOL "Standalone build (all the resources are embedded, necessary for releases)") |
58 SET(BUILD_MODALITY_WORKLISTS ON CACHE BOOL "Whether to build the sample plugin to serve modality worklists") | 58 SET(BUILD_MODALITY_WORKLISTS ON CACHE BOOL "Whether to build the sample plugin to serve modality worklists") |
59 SET(BUILD_RECOVER_COMPRESSED_FILE ON CACHE BOOL "Whether to build the companion tool to recover files compressed using Orthanc") | 59 SET(BUILD_RECOVER_COMPRESSED_FILE ON CACHE BOOL "Whether to build the companion tool to recover files compressed using Orthanc") |
60 SET(BUILD_SERVE_FOLDERS ON CACHE BOOL "Whether to build the ServeFolders plugin") | 60 SET(BUILD_SERVE_FOLDERS ON CACHE BOOL "Whether to build the ServeFolders plugin") |
61 SET(BUILD_CONNECTIVITY_CHECKS ON CACHE BOOL "Whether to build the ConnectivityChecks plugin") | 61 SET(BUILD_CONNECTIVITY_CHECKS ON CACHE BOOL "Whether to build the ConnectivityChecks plugin") |
62 SET(BUILD_DB_OPTIMIZER ON CACHE BOOL "Whether to build the DbOptimizer plugin") | 62 SET(BUILD_HOUSEKEEPER ON CACHE BOOL "Whether to build the Housekeeper plugin") |
63 SET(ENABLE_PLUGINS ON CACHE BOOL "Enable plugins") | 63 SET(ENABLE_PLUGINS ON CACHE BOOL "Enable plugins") |
64 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests") | 64 SET(UNIT_TESTS_WITH_HTTP_CONNEXIONS ON CACHE BOOL "Allow unit tests to make HTTP requests") |
65 | 65 |
66 | 66 |
67 ##################################################################### | 67 ##################################################################### |
605 endif() | 605 endif() |
606 | 606 |
607 | 607 |
608 | 608 |
609 ##################################################################### | 609 ##################################################################### |
610 ## Build the "DbOptimizer" plugin | 610 ## Build the "Housekeeper" plugin |
611 ##################################################################### | 611 ##################################################################### |
612 | 612 |
613 if (ENABLE_PLUGINS AND BUILD_DB_OPTIMIZER) | 613 if (ENABLE_PLUGINS AND BUILD_DB_OPTIMIZER) |
614 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") | 614 if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows") |
615 execute_process( | 615 execute_process( |
616 COMMAND | 616 COMMAND |
617 ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/../OrthancFramework/Resources/WindowsResources.py | 617 ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/../OrthancFramework/Resources/WindowsResources.py |
618 ${ORTHANC_VERSION} DbOptimizer DbOptimizer.dll "Sample Orthanc plugin to optimizer/clean the DB/Storage" | 618 ${ORTHANC_VERSION} Housekeeper Housekeeper.dll "Sample Orthanc plugin to optimize/clean the DB/Storage" |
619 ERROR_VARIABLE Failure | 619 ERROR_VARIABLE Failure |
620 OUTPUT_FILE ${AUTOGENERATED_DIR}/DbOptimizer.rc | 620 OUTPUT_FILE ${AUTOGENERATED_DIR}/Housekeeper.rc |
621 ) | 621 ) |
622 | 622 |
623 if (Failure) | 623 if (Failure) |
624 message(FATAL_ERROR "Error while computing the version information: ${Failure}") | 624 message(FATAL_ERROR "Error while computing the version information: ${Failure}") |
625 endif() | 625 endif() |
626 | 626 |
627 list(APPEND DB_OPTIMIZER_RESOURCES ${AUTOGENERATED_DIR}/DbOptimizer.rc) | 627 list(APPEND HOUSEKEEPER_RESOURCES ${AUTOGENERATED_DIR}/Housekeeper.rc) |
628 endif() | 628 endif() |
629 | 629 |
630 add_library(DbOptimizer SHARED | 630 add_library(Housekeeper SHARED |
631 ${CMAKE_SOURCE_DIR}/Plugins/Samples/DbOptimizer/Plugin.cpp | 631 ${CMAKE_SOURCE_DIR}/Plugins/Samples/Housekeeper/Plugin.cpp |
632 ${DB_OPTIMIZER_RESOURCES} | 632 ${HOUSEKEEPER_RESOURCES} |
633 ) | 633 ) |
634 | 634 |
635 target_link_libraries(DbOptimizer | 635 target_link_libraries(Housekeeper |
636 ThirdPartyPlugins | 636 ThirdPartyPlugins |
637 ) | 637 ) |
638 | 638 |
639 set_target_properties( | 639 set_target_properties( |
640 DbOptimizer PROPERTIES | 640 Housekeeper PROPERTIES |
641 VERSION ${ORTHANC_VERSION} | 641 VERSION ${ORTHANC_VERSION} |
642 SOVERSION ${ORTHANC_VERSION} | 642 SOVERSION ${ORTHANC_VERSION} |
643 ) | 643 ) |
644 | 644 |
645 install( | 645 install( |
646 TARGETS DbOptimizer | 646 TARGETS Housekeeper |
647 RUNTIME DESTINATION lib # Destination for Windows | 647 RUNTIME DESTINATION lib # Destination for Windows |
648 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux | 648 LIBRARY DESTINATION share/orthanc/plugins # Destination for Linux |
649 ) | 649 ) |
650 endif() | 650 endif() |
651 | 651 |