alpaka-group / cupla

C++ User interface for the Platform independent Library Alpaka :arrows_clockwise:
Other
37 stars 18 forks source link

Allow to include alpaka via add_subdirectory before cupla in an external project #216

Closed SimeonEhrig closed 3 years ago

SimeonEhrig commented 3 years ago

With this PR, the following CMake is possible in a project, which uses cupla.

cmake_minimum_required(VERSION 3.18.0)
project(test)

add_subdirectory(alpaka)
add_subdirectory(cupla)

cupla_add_executable(${PROJECT_NAME} main.cpp)