2014-05-08 22:15:15 +02:00
|
|
|
|
|
|
|
SET(PYTHON_SOURCES
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/aux.py
|
|
|
|
)
|
|
|
|
|
|
|
|
# Install python sources
|
|
|
|
install (FILES ${PYTHON_SOURCES} DESTINATION ${TRIQS_PYTHON_LIB_DEST}/wrap_test)
|
|
|
|
|
|
|
|
# Build C extension module
|
|
|
|
triqs_python_extension(my_module wrap_test)
|
2014-05-16 19:35:48 +02:00
|
|
|
triqs_python_extension(my_moduleB wrap_test)
|
2014-05-21 23:01:27 +02:00
|
|
|
triqs_python_extension(test_g wrap_test)
|
2014-05-08 22:15:15 +02:00
|
|
|
# ??triqs_set_rpath_for_target(my_module)
|
|
|
|
|
2014-05-30 19:21:38 +02:00
|
|
|
# the module B must be generated AFTER my_module since it uses some wrapped types...
|
|
|
|
add_dependencies(python_wrap_my_moduleB python_wrap_my_module)
|
|
|
|
|
2014-05-08 22:15:15 +02:00
|
|
|
include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
|
|
|
|
|
|
|
|
install (FILES ${CMAKE_SOURCE_DIR}/pytriqs/__init__.py.template DESTINATION "include/pytriqs/gf/local" RENAME __init__.py)
|
|
|
|
|