forked from fortran-lang/fftpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (38 loc) · 921 Bytes
/
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
42
43
44
# Master CMAKE Build Script
cmake_minimum_required(VERSION 3.24)
project(
fftpack
LANGUAGES Fortran
VERSION 1.0.0
)
# Get helper macros and functions
include("${PROJECT_SOURCE_DIR}/cmake/helper.cmake")
# Confgiure everything
add_subdirectory(configure)
# Source
add_subdirectory(src)
add_fortran_library(
${PROJECT_NAME}
${PROJECT_INCLUDE_DIR}
${CMAKE_INSTALL_INCLUDEDIR}
${PROJECT_VERSION}
${PROJECT_VERSION_MAJOR}
${FFTPACK_SOURCES}
)
# Installation
add_subdirectory(install)
# Testing
option(BUILD_TESTING "Build tests")
include(CTest)
message(STATUS "Build FFTPACK tests: ${BUILD_TESTING}")
if (BUILD_TESTING)
enable_testing()
add_subdirectory(dependencies)
add_subdirectory(test)
endif()
# Examples
option(BUILD_FFTPACK_EXAMPLES "Build FFTPACK examples")
message(STATUS "Build FFTPACK examples: ${BUILD_FFTPACK_EXAMPLES}")
if (BUILD_FFTPACK_EXAMPLES)
add_subdirectory(example)
endif()