2018-02-14 22:17:19 +01:00
|
|
|
# === Build and install atm module
|
2017-12-07 15:56:05 +01:00
|
|
|
add_cpp2py_module(atm)
|
|
|
|
target_link_libraries(atm atm_c triqs)
|
2018-01-22 23:34:20 +01:00
|
|
|
target_compile_options(atm PRIVATE -std=c++17)
|
|
|
|
target_include_directories(atm PRIVATE ${CMAKE_SOURCE_DIR}/c++)
|
2016-03-09 19:04:05 +01:00
|
|
|
|
2018-02-14 22:17:19 +01:00
|
|
|
install(TARGETS atm DESTINATION ${PYTHON_LIB_DEST}/converters/plovasp)
|
2017-12-07 15:56:05 +01:00
|
|
|
|
2018-02-14 22:17:19 +01:00
|
|
|
# === Copy Python files to current build directory and register for install
|
|
|
|
set(PYTHON_SOURCES __init__.py converter.py elstruct.py inpconf.py plotools.py proj_group.py proj_shell.py sc_dmft.py vaspio.py)
|
|
|
|
foreach(f ${PYTHON_SOURCES})
|
|
|
|
configure_file(${f} ${f} COPYONLY)
|
|
|
|
endforeach()
|
2017-12-07 15:56:05 +01:00
|
|
|
|
2018-02-14 22:17:19 +01:00
|
|
|
# install files
|
|
|
|
install(FILES ${PYTHON_SOURCES} DESTINATION ${PYTHON_LIB_DEST}/converters/plovasp)
|
2016-03-09 20:03:02 +01:00
|
|
|
|
2018-02-14 22:17:19 +01:00
|
|
|
# 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)
|