mirror of
https://github.com/triqs/dft_tools
synced 2024-12-28 07:13:41 +01:00
f07afa50ff
To make it work one has to create a symlink in 'dft/converters/plovasp' pointing to the built library 'atm.so'. Also, one has to use 'from <modulename> import <function>' inside the test itself to avoid problems with module name substitutions.
12 lines
569 B
CMake
12 lines
569 B
CMake
set(python_destination pytriqs/applications/dft/converters/plovasp)
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${TRIQS_INCLUDE_ALL})
|
|
triqs_python_extension(atm ${python_destination})
|
|
target_link_libraries(atm atm_c ${TRIQS_LIBRARY_ALL})
|
|
triqs_set_rpath_for_target(atm)
|
|
|
|
# This we need in order for tests to work
|
|
add_custom_command(TARGET atm POST_BUILD COMMAND ln -fs ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}/atm.so ${CMAKE_BINARY_DIR}/python/dft/converters/plovasp)
|
|
|
|
install (TARGETS atm DESTINATION ${TRIQS_PYTHON_LIB_DEST_ROOT}/${python_destination})
|