-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
41 lines (27 loc) · 853 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
cmake_minimum_required(VERSION 3.20...3.30)
project(CMakeDemos
LANGUAGES C CXX
DESCRIPTION "Demonstrate CMake usage"
HOMEPAGE_URL https://github.com/scivision/cmake-utils)
enable_testing()
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
option(fortran "Enable Fortran" ON)
set_directory_properties(PROPERTIES EP_UPDATE_DISCONNECTED true)
# --- auto-ignore build directory
file(GENERATE OUTPUT .gitignore CONTENT "*")
message(STATUS "CMake ${CMAKE_VERSION}")
add_subdirectory(autotools)
if(fortran)
add_subdirectory(fetchContent)
endif()
add_subdirectory(zip)
add_subdirectory(openmp)
add_subdirectory(opencl)
add_subdirectory(system)
add_subdirectory(syntax)
# --- demo target echo properties
# include(echo_target_properties.cmake)
# find_package(ZLIB)
# if(ZLIB_FOUND)
# echo_target_properties(ZLIB::ZLIB)
# endif()