mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 20:34:38 +01:00
[cmake] Provide an alias PROJECT_NAME::module_name for each module
This commit is contained in:
parent
74cf0207dc
commit
6bd1e51c4e
@ -20,6 +20,7 @@ foreach(gen ${wrap_generators})
|
||||
get_filename_component(module_name ${gen} NAME_WE)
|
||||
get_filename_component(module_dir ${gen} DIRECTORY)
|
||||
add_cpp2py_module(NAME ${module_name} DIRECTORY ${module_dir})
|
||||
add_library(${PROJECT_NAME}::${module_name} ALIAS ${module_name})
|
||||
target_link_libraries(${module_name} ${PROJECT_NAME}_c triqs_py)
|
||||
install(TARGETS ${module_name} DESTINATION ${PYTHON_LIB_DEST}/${module_dir})
|
||||
endforeach()
|
||||
|
Loading…
Reference in New Issue
Block a user