Skip to content

Commit

Permalink
COMP: Use modern project() invocations.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Jan 28, 2025
1 parent be8f990 commit 7bf400b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.16.3)
cmake_minimum_required(VERSION 3.22.1)

if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14) # Supported values are ``14``, ``17`` and ``20``.
Expand All @@ -10,9 +10,13 @@ if(NOT CMAKE_CXX_EXTENSIONS)
set(CMAKE_CXX_EXTENSIONS OFF)
endif()

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


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

project(PerformanceBenchmarking)

set(PerformanceBenchmarking_LIBRARIES PerformanceBenchmarking)

Expand Down

0 comments on commit 7bf400b

Please sign in to comment.