-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
41 lines (35 loc) · 1.01 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 3.16.3)
if(POLICY CMP0169)
cmake_policy(SET CMP0169 OLD)
endif()
include(FetchContent)
FetchContent_Declare(
ants_inner
GIT_REPOSITORY https://github.com/ANTsX/ANTs
GIT_TAG 0e0e488fe17aa96dc25a8e88d2db42e5bdfefce7 # 2024-09-27
)
FetchContent_GetProperties(ants_inner)
if(NOT ants_inner_POPULATED)
FetchContent_Populate(ants_inner)
endif()
project(ANTsWasm)
if(NOT ITK_SOURCE_DIR)
find_package(ITK REQUIRED)
endif()
set(ANTsWasm_INCLUDE_DIRS
${ANTsWasm_SOURCE_DIR}/include
${ants_inner_SOURCE_DIR}/Utilities
${ants_inner_SOURCE_DIR}/ImageRegistration
${ants_inner_SOURCE_DIR}/Tensor
${ants_inner_SOURCE_DIR}/Temporary
${ants_inner_SOURCE_DIR}/Examples
${ants_inner_SOURCE_DIR}/Examples/include
)
if(NOT ITK_SOURCE_DIR)
find_package(ITK 5.4 REQUIRED) # we need at least 71c5c83 from 2024-02-02 for debug mode
list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR})
include(ITKModuleExternal)
else()
set(ITK_DIR ${CMAKE_BINARY_DIR})
itk_module_impl()
endif()