Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 512 Bytes

cmake.md

File metadata and controls

19 lines (14 loc) · 512 Bytes

Find DeePMD-kit C/C++ library from CMake

After DeePMD-kit C/C++ library is installed, one can find DeePMD-kit from CMake:

find_package(DeePMD REQUIRED)

Note that you may need to add ${deepmd_root} to the cached CMake variable CMAKE_PREFIX_PATH.

To link against the C interface library, using

target_link_libraries(some_library PRIVATE DeePMD::deepmd_c)

To link against the C++ interface library, using

target_link_libraries(some_library PRIVATE DeePMD::deepmd_cc)