2013-08-07 16:30:09 +02:00
|
|
|
# where will the python end up in triqs?
|
2018-02-06 22:44:11 +01:00
|
|
|
set(PYTHON_LIB_DEST ${CPP2PY_PYTHON_LIB_DEST_ROOT}/triqs_dft_tools)
|
2013-07-23 19:49:42 +02:00
|
|
|
|
2016-02-04 08:28:47 +01:00
|
|
|
# site_customize for build
|
2018-02-06 22:44:11 +01:00
|
|
|
set(package_name "triqs_dft_tools")
|
2018-01-22 23:34:20 +01:00
|
|
|
|
|
|
|
# Create a temporary copy of the python modules so that we can run before installation with the test
|
2018-02-14 22:17:19 +01:00
|
|
|
FILE(GLOB PYTHON_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.py )
|
2018-02-06 22:44:11 +01:00
|
|
|
foreach(f ${PYTHON_SOURCES})
|
2018-01-22 23:34:20 +01:00
|
|
|
configure_file(${f} ${f} COPYONLY)
|
|
|
|
endforeach()
|
|
|
|
|
2016-05-05 18:56:13 +02:00
|
|
|
# add version file
|
2017-12-07 15:56:05 +01:00
|
|
|
configure_file(version.py.in version.py @ONLY)
|
|
|
|
|
2018-02-06 22:44:11 +01:00
|
|
|
# install files
|
|
|
|
install(FILES ${PYTHON_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/version.py DESTINATION ${PYTHON_LIB_DEST})
|
2018-02-14 22:17:19 +01:00
|
|
|
|
|
|
|
add_subdirectory(converters)
|