Skip to content

Commit

Permalink
ENH: Add a CMake option to disable playground extensions. #2828
Browse files Browse the repository at this point in the history
  • Loading branch information
Woundorf committed Jul 5, 2022
1 parent 41611d8 commit e24b190
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions starviewer/CMake/Options.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Notes:
# - STARVIEWER_CE shall not be used with STARVIEWER_BETA or STARVIEWER_LITE.
# - STARVIEWER_CE should be combined with SEND_HOST_DATA and USE_QTCONF.
# - Playground extensions will be disabled if STARVIEWER_CE or STARVIEWER_LITE are ON, disregarding the value of ENABLE_PLAYGROUND_EXTENSIONS.
# - USE_QTCONF should be disabled for development, otherwise Qt plugins are not found in Qt folder.
# - USE_CRASH_REPORTER and USE_PACS_COMPRESSION should always be left ON under normal circumstances.
# - USE_CUDA is totally untested, probably would not work without changes.
Expand All @@ -10,6 +11,8 @@ option(STARVIEWER_BETA "Build Starviewer with a beta warning." OFF)
option(STARVIEWER_CE "Build Starviewer with CE marking. Requires the deployment repository." OFF)
option(STARVIEWER_LITE "Build Starviewer Lite instead of full Starviewer." OFF)

option(ENABLE_PLAYGROUND_EXTENSIONS "Enable extensions in the playground directory." ON)

option(SEND_HOST_DATA "Starviewer will send hashed MAC and work group id when checking for updates." OFF)
option(USE_QTCONF "Include a qt.conf file in resources. Enable if you intend to install Starviewer." OFF)
option(USE_SPECIFIC_HANGING_PROTOCOLS "Include institution-specific hanging protocols from the deployment repository." OFF)
Expand Down
5 changes: 4 additions & 1 deletion starviewer/src/extensions/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
add_subdirectory(main)
add_subdirectory(contrib)
add_subdirectory(playground)

if(ENABLE_PLAYGROUND_EXTENSIONS)
add_subdirectory(playground)
endif()

0 comments on commit e24b190

Please sign in to comment.