Skip to content

Commit 7bf400b

Browse files
committed
COMP: Use modern project() invocations.
1 parent be8f990 commit 7bf400b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.16.3)
1+
cmake_minimum_required(VERSION 3.22.1)
22

33
if(NOT CMAKE_CXX_STANDARD)
44
set(CMAKE_CXX_STANDARD 14) # Supported values are ``14``, ``17`` and ``20``.
@@ -10,9 +10,13 @@ if(NOT CMAKE_CXX_EXTENSIONS)
1010
set(CMAKE_CXX_EXTENSIONS OFF)
1111
endif()
1212

13-
## If building external to ITK, we need to capture
14-
## required build setting from ITK prior to calling
15-
## project()
13+
project(PerformanceBenchmarking
14+
VERSION 0.9.0
15+
DESCRIPTION
16+
"Real-world tests to benchmark ITK performance."
17+
HOMEPAGE_URL "https://github.com/InsightSoftwareConsortium/ITKPerformanceBenchmarking"
18+
LANGUAGES CXX C
19+
)
1620
if(NOT ITK_SOURCE_DIR)
1721
find_package(ITK REQUIRED)
1822
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
@@ -27,19 +31,15 @@ if(NOT ITK_SOURCE_DIR)
2731
endif()
2832
endforeach()
2933

30-
3134
# Set a default build type if none was specified
3235
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
3336
message(STATUS "Setting build type to 'Release' as none was specified.")
3437
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
3538
# Set the possible values of build type for cmake-gui
3639
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
3740
endif()
38-
enable_language(C)
39-
enable_language(CXX)
4041
endif()
4142

42-
project(PerformanceBenchmarking)
4343

4444
set(PerformanceBenchmarking_LIBRARIES PerformanceBenchmarking)
4545

0 commit comments

Comments
 (0)