Warning, /eic-opticks/examples/async_gpu_std/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.20)
0002
0003 project(async_gpu_std LANGUAGES CXX)
0004
0005 set(CMAKE_CXX_STANDARD 17)
0006 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0007 set(CMAKE_CXX_EXTENSIONS OFF)
0008
0009 # Order matters: pull in glm before eic-opticks because the installed
0010 # eic-opticks::SysRap target's link interface references glm::glm but the
0011 # package's Config.cmake does not declare it as a dependency.
0012 find_package(glm REQUIRED)
0013 find_package(eic-opticks REQUIRED)
0014 find_package(Geant4 REQUIRED ui_all vis_all)
0015 find_package(Threads REQUIRED)
0016
0017 add_executable(async_gpu_std async_gpu_std.cpp async_gpu_std.h)
0018 target_link_libraries(async_gpu_std
0019 eic-opticks::G4CX
0020 eic-opticks::SysRap
0021 eic-opticks::U4
0022 ${Geant4_LIBRARIES}
0023 Threads::Threads
0024 )
0025
0026 install(TARGETS async_gpu_std)