forked from QMCPACK/qmcpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'williamfgc/ref-add-SPOSetT' into update…
…_RotatedSPOsT_with_mw
- Loading branch information
Showing
474 changed files
with
31,618 additions
and
47,353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,27 +2,37 @@ | |
cmake_minimum_required(VERSION 3.16) | ||
|
||
project( | ||
mpi3 | ||
bmpi3 | ||
VERSION 0.79.0 | ||
DESCRIPTION "B-MPI3 is a C++ library wrapper for version 3.1 of the MPI standard interface that simplifies the utilization and maintenance of MPI code." | ||
HOMEPAGE_URL "https://gitlab.com/correaa/boost-mpi3" | ||
LANGUAGES CXX | ||
) | ||
|
||
include(GNUInstallDirs) | ||
find_package(MPI REQUIRED) # might need to `module load mpi` | ||
|
||
add_library(${PROJECT_NAME} INTERFACE) | ||
|
||
target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_17) | ||
target_include_directories(${PROJECT_NAME} INTERFACE $<BUILD_INTERFACE:${${PROJECT_NAME}_SOURCE_DIR}/include> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${${PROJECT_NAME}_SOURCE_DIR}/include/mpi3/dummy>) | ||
target_link_libraries(${PROJECT_NAME} INTERFACE MPI::MPI_CXX) | ||
|
||
target_compile_features(${PROJECT_NAME} INTERFACE cxx_std_17) | ||
#set_target_properties(${PROJECT_NAME} PROPERTIES CXX_EXTENSIONS OFF) | ||
# to use this project directly from CMake | ||
# FetchContent_Declare( | ||
# bmpi3 | ||
# GIT_REPOSITORY [email protected]:correaa/boost-mpi3.git # https://gitlab.com/correaa/boost-mpi3.git | ||
# GIT_TAG master) | ||
# FetchContent_MakeAvailable(bmpi3) | ||
# add_executable(main main.cpp) | ||
# target_link_libraries(main PUBLIC bmpi3) | ||
|
||
# this makes CM FetchContent friendly https://www.foonathan.net/2022/06/cmake-fetchcontent/ | ||
if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) | ||
return() | ||
return() | ||
endif() | ||
|
||
include(GNUInstallDirs) | ||
|
||
include(CTest) | ||
|
||
enable_testing() | ||
|
Oops, something went wrong.