mirror of
https://github.com/triqs/dft_tools
synced 2024-11-19 04:22:29 +01:00
911f127789
In order to wrap the ATM routines by Python using TRIQS wrapping tools it is necessary to modify the interface to 'dos_tetra3d'. The major changes involved replacing direct NumPy arrays with TRIQS arrays which can be converted to Python arrays using library tools. Also, some small changes were necessary to port the functions from C99 complex numbers to C++ style. CMakeList is added to automatize building of the ATM library.
10 lines
350 B
CMake
10 lines
350 B
CMake
# Linking and include info
|
|
add_library(atm_c dos_tetra3d.hpp dos_tetra3d.cpp argsort.hpp argsort.cpp)
|
|
set_target_properties(atm_c PROPERTIES LINKER_LANGUAGE CXX)
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/c++/plovasp/atm ${TRIQS_INCLUDE_ALL})
|
|
|
|
#add_executable(test_atm test2py.cpp)
|
|
#target_link_libraries(test_atm atm_c)
|
|
|
|
add_subdirectory(test)
|