-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
38 lines (33 loc) · 828 Bytes
/
CMakeLists.txt
File metadata and controls
38 lines (33 loc) · 828 Bytes
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
# Master CMAKE Build Script
cmake_minimum_required(VERSION 3.24)
project(
nonlin
LANGUAGES Fortran
VERSION 2.0.2
)
set(CMAKE_Fortran_STANDARD 2018)
set(CMAKE_Fortran_STANDARD_REQUIRED TRUE)
# Confgiure everything
add_subdirectory(configure)
# Source
add_subdirectory(src)
# Installation Instructions
install(
EXPORT ${PROJECT_NAME}-targets
NAMESPACE ${PROJECT_NAME}::
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}"
)
# Testing
option(BUILD_TESTING "Build tests")
include(CTest)
message(STATUS "Build tests: ${BUILD_TESTING}")
if (BUILD_TESTING)
enable_testing()
add_subdirectory(tests)
endif()
# Examples
option(BUILD_NONLIN_EXAMPLES "Build nonlin examples")
message(STATUS "Build nonlin examples: ${BUILD_NONLIN_EXAMPLES}")
if (BUILD_NONLIN_EXAMPLES)
add_subdirectory(examples)
endif()