-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathVecGeomConfig.cmake.in
31 lines (28 loc) · 1.4 KB
/
VecGeomConfig.cmake.in
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
# - Config file for the VecGeom package
# Defines the following variables
# VECGEOM_INCLUDE_DIR - include directories for VecGeom
# VECGEOM_LIBRARIES - libraries to link against
# USOLIDS_INCLUDE_DIRS - include directories for USolids
# USOLIDS_LIBRARIES - libraries to link against
# VECGEOM_DEFINITIONS - some core flags used to build the vecgeom library and which need to be reused
# in projects using VecGeom
# VECGEOM_INSTALL_DIR - the top level installation path
message(STATUS
"Using VecGeom @CONF_TYPE@ configuration at ${CMAKE_CURRENT_LIST_FILE}.")
get_filename_component(THIS_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(USOLIDS_INCLUDE_DIRS "@CONF_INCLUDE_DIR@")
set(USOLIDS_LIBRARIES "@CONF_LIBRARIES@")
set(VECGEOM_INCLUDE_DIR "@CONF_INCLUDE_DIR@")
set(VECGEOM_LIBRARIES "@CONF_LIBRARIES@")
set(VECGEOM_INSTALL_DIR "@CMAKE_INSTALL_PREFIX@")
set(VECGEOM_DEFINITIONS "@VECGEOM_COMPILATION_FLAGS@")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} @VECGEOM_COMPILATION_FLAGS@")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} @VECGEOM_COMPILATION_FLAGS_GNU@")
endif()
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} @VECGEOM_COMPILATION_FLAGS_CLANG@")
endif()
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} @VECGEOM_COMPILATION_FLAGS_INTEL@")
endif()