Skip to content

Commit 539da4f

Browse files
committed
ENH: build examples as part of CI testing
1 parent 2f90b24 commit 539da4f

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/build-test-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
endif()
109109
set(dashboard_cache "
110110
ITK_DIR:PATH=\${CTEST_DASHBOARD_ROOT}/ITK-b
111+
Module_MorphologicalContourInterpolation_BUILD_EXAMPLES:BOOL=ON
111112
BUILD_TESTING:BOOL=ON
112113
")
113114
string(TIMESTAMP build_date "%Y-%m-%d")

CMakeLists.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
cmake_minimum_required(VERSION 3.10.2)
2+
3+
if(CMAKE_CXX_STANDARD EQUAL "98" )
4+
message(FATAL_ERROR "CMAKE_CXX_STANDARD:STRING=98 is not supported in ITK version 5 and greater.")
5+
endif()
6+
7+
if(NOT CMAKE_CXX_STANDARD)
8+
set(CMAKE_CXX_STANDARD 11) # Supported values are ``11``, ``14``, and ``17``.
9+
endif()
10+
if(NOT CMAKE_CXX_STANDARD_REQUIRED)
11+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
12+
endif()
13+
if(NOT CMAKE_CXX_EXTENSIONS)
14+
set(CMAKE_CXX_EXTENSIONS OFF)
15+
endif()
16+
217
project(MorphologicalContourInterpolation)
318

419
if(NOT ITK_SOURCE_DIR)
520
find_package(ITK 4.9 REQUIRED)
621
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
722
include(ITKModuleExternal)
823
else()
24+
set(ITK_DIR ${CMAKE_BINARY_DIR})
925
itk_module_impl()
1026
endif()
1127

0 commit comments

Comments
 (0)