forked from deepmodeling/abacus-develop
-
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.
- Loading branch information
Showing
67 changed files
with
1,005 additions
and
986 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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
include(FindPackageHandleStandardArgs) | ||
|
||
if(DEFINED Libxc_DIR) | ||
string(APPEND CMAKE_PREFIX_PATH ";${Libxc_DIR}") | ||
endif() | ||
# Using CMake interface as default. | ||
# NO REQUIRED here, otherwhile it would throw error | ||
# with no LibXC found. | ||
find_package(Libxc HINTS | ||
${Libxc_DIR}/share/cmake/Libxc | ||
${Libxc_DIR}/lib/cmake/Libxc | ||
${Libxc_DIR}/lib64/cmake/Libxc | ||
) | ||
if(NOT TARGET Libxc::xc) | ||
find_package(PkgConfig REQUIRED) | ||
pkg_search_module(Libxc REQUIRED IMPORTED_TARGET GLOBAL libxc) | ||
find_package_handle_standard_args(Libxc DEFAULT_MSG Libxc_LINK_LIBRARIES Libxc_INCLUDE_DIRS) | ||
endif() | ||
|
||
|
||
# Copy the results to the output variables and target. | ||
# if find_package() above works, Libxc::xc would be present and | ||
# below would be skipped. | ||
if(Libxc_FOUND AND NOT TARGET Libxc::xc) | ||
set(Libxc_LIBRARY ${Libxc_LINK_LIBRARIES}) | ||
set(Libxc_LIBRARIES ${Libxc_LIBRARY}) | ||
set(Libxc_INCLUDE_DIR ${Libxc_INCLUDE_DIRS}) | ||
add_library(Libxc::xc UNKNOWN IMPORTED) | ||
set_target_properties(Libxc::xc PROPERTIES | ||
IMPORTED_LOCATION "${Libxc_LIBRARY}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${Libxc_INCLUDE_DIR}") | ||
endif() | ||
|
||
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${Libxc_INCLUDE_DIR}) | ||
|
||
mark_as_advanced(Libxc_INCLUDE_DIR Libxc_LIBRARY) |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <pybind11/numpy.h> | ||
#include <pybind11/pybind11.h> | ||
|
||
namespace py = pybind11; | ||
|
||
void bind_numerical_radial(py::module& m); | ||
void bind_math_base(py::module& m); | ||
|
||
PYBIND11_MODULE(_core, m) | ||
{ | ||
// bind_numerical_radial(m); | ||
bind_math_base(m); | ||
} |
Oops, something went wrong.