Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate VCPKG with cmakelists #45

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# CMake 3.15+ for Thrust/Cub support
cmake_minimum_required(VERSION 3.19 FATAL_ERROR)

set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")


project(MegBA VERSION 1.0.0 LANGUAGES CUDA CXX)



set(CMAKE_CXX_STANDARD 14)
set(CUDA_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
Expand Down Expand Up @@ -41,8 +47,7 @@ option(MEGBA_ENABLE_EXAMPLE "BUILD EXAMPLES" TRUE)
# CUDA
find_package(CUDAToolkit REQUIRED)
find_package(OpenMP REQUIRED)
set(EIGEN_BUILD_TESTING OFF)
add_subdirectory(third_party/eigen)
find_package(Eigen3 CONFIG REQUIRED)
find_package(Threads REQUIRED)
if (${CMAKE_CUDA_COMPILER_VERSION} GREATER_EQUAL 11.5)
set(Thrust_DIR /usr/local/cuda/targets/x86_64-linux/lib/cmake/thrust/)
Expand Down
1 change: 0 additions & 1 deletion third_party/eigen
Submodule eigen deleted from 314739
1 change: 1 addition & 0 deletions vcpkg
Submodule vcpkg added at 67cc16