From 68ba0f37516c23393cf510f510e41fd23c1f6b6a Mon Sep 17 00:00:00 2001 From: "Oleg E. Peil" Date: Wed, 9 Mar 2016 20:03:02 +0100 Subject: [PATCH] Fixed CMakeLists to make 'atm.so' installable --- python/CMakeLists.txt | 4 +++- python/converters/plovasp/CMakeLists.txt | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 9289c44a..5fb6039c 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -2,8 +2,10 @@ set(python_destination applications/dft) # make a local pytriqs copy -triqs_prepare_local_pytriqs_merged_with_my_python(${python_destination}) +#triqs_prepare_local_pytriqs_merged_with_my_python(${python_destination}) +triqs_prepare_local_pytriqs(${python_destination}) # to be able to run from toplevel execute_process(COMMAND ln -fs ${CMAKE_BINARY_DIR}/fortran/vertex/vertex.so ${CMAKE_BINARY_DIR}/pytriqs/${python_destination}) +add_subdirectory(converters/plovasp) diff --git a/python/converters/plovasp/CMakeLists.txt b/python/converters/plovasp/CMakeLists.txt index 7321cf3d..d09661c1 100644 --- a/python/converters/plovasp/CMakeLists.txt +++ b/python/converters/plovasp/CMakeLists.txt @@ -1,5 +1,10 @@ +set(python_destination applications/dft/converters/plovasp) + include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${TRIQS_INCLUDE_ALL}) -triqs_python_extension(atm) +triqs_python_extension(atm ${python_destination}) target_link_libraries(atm atm_c ${TRIQS_LIBRARY_ALL}) triqs_set_rpath_for_target(atm) +#execute_process(COMMAND ln -fs ${CMAKE_CURRENT_BINARY_DIR}/atm.so ${CMAKE_BINARY_DIR}/${python_destination}) + +install (TARGETS atm DESTINATION ${TRIQS_PYTHON_LIB_DEST_ROOT}/${python_destination})