-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
47 lines (38 loc) · 1.49 KB
/
CMakeLists.txt
File metadata and controls
47 lines (38 loc) · 1.49 KB
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
45
46
47
# $Id: ClientCMakeLists.txt.in 751112 2016-05-31 12:00:21Z krasznaa $
#
# This is a template for a CMakeLists.txt file that can be used in a client
# project (work area) to set up building ATLAS packages against the configured
# release.
#
# Set the minimum required CMake version:
cmake_minimum_required( VERSION 3.2 FATAL_ERROR )
# If there's a directory called AtlasCMake in the project,
# and the user didn't specify AtlasCMake_DIR yet, then let's
# give it a default value.
if( IS_DIRECTORY ${CMAKE_SOURCE_DIR}/Build/AtlasCMake AND
NOT AtlasCMake_DIR AND NOT ENV{AtlasCMake_DIR} )
set( AtlasCMake_DIR ${CMAKE_SOURCE_DIR}/Build/AtlasCMake )
endif()
# If there's a directory called AtlasLCG in the project,
# and the user didn't specify LCG_DIR yet, then let's
# give it a default value.
if( IS_DIRECTORY ${CMAKE_SOURCE_DIR}/Build/AtlasLCG AND
NOT LCG_DIR AND NOT ENV{LCG_DIR} )
set( LCG_DIR ${CMAKE_SOURCE_DIR}/Build/AtlasLCG )
endif()
# Pick up a local version of the AtlasCMake code if it exists:
find_package( AtlasCMake QUIET )
# Find the project that we depend on:
find_package( AtlasOffline )
# Set up CTest:
atlas_ctest_setup()
# Set up a work directory project:
atlas_project( WorkDir 21.0.20
USE AtlasOffline 21.0.20
FORTRAN )
# Set up the runtime environment setup script(s):
lcg_generate_env( SH_FILE ${CMAKE_BINARY_DIR}/${ATLAS_PLATFORM}/env_setup.sh )
install( FILES ${CMAKE_BINARY_DIR}/${ATLAS_PLATFORM}/env_setup.sh
DESTINATION . )
# Set up CPack:
atlas_cpack_setup()