From 54bf91b22a9981dd02948eaef51ba111d5cd591d Mon Sep 17 00:00:00 2001 From: Nathan Hillyer Date: Fri, 4 Sep 2020 10:42:53 -0400 Subject: [PATCH] Add CMakeLists.txt for building slicer extension. #83 --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..f901f6e --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,8 @@ +# 3D Slicer's extension build tool defines CollageRadiomics_BUILD_SLICER_EXTENSION:BOOL=ON +# to indicate that this project is being built as a 3D Slicer extension. +if (CollageRadiomics_BUILD_SLICER_EXTENSION) + message(STATUS "Building project as a Slicer extension") + project(CollageRadiomics) + add_subdirectory(slicer) + return() +endif()