forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (21 loc) · 878 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
#----------------------------------*-CMake-*----------------------------------#
# Copyright 2023-2024 UT-Battelle, LLC, and other Celeritas developers.
# See the top-level COPYRIGHT file for details.
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
#-----------------------------------------------------------------------------#
cmake_minimum_required(VERSION 3.18)
project(CeleritasMinimalExample VERSION 0.0.1 LANGUAGES CXX)
cmake_policy(VERSION 3.12...3.22)
set(CMAKE_DEBUG_TARGET_PROPERTIES
INTERFACE_LINK_DIRECTORIES
INTERFACE_LINK_LIBRARIES
)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/..")
find_package(Celeritas 0.5 REQUIRED)
add_executable(minimal minimal.cc)
# Use special linking macros to support CUDA RDC across multiple libraries when
# using VecGeom.
include(CeleritasLibrary)
celeritas_target_link_libraries(minimal
Celeritas::celeritas
)