Skip to content
Snippets Groups Projects
Commit 53f299ac authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

cmake : add _dgpy and _gmshpy global targets

parent e0aca4d7
No related branches found
No related tags found
No related merge requests found
......@@ -79,11 +79,14 @@ if(ENABLE_SWIG)
swig_link_libraries(${module} ${PYTHON_LIBRARIES} shared)
SET(GMSH_PYTHON_MODULES_INCLUDE_CODE
"${GMSH_PYTHON_MODULES_INCLUDE_CODE}from ${module} import *\n")
list(APPEND GMSHPY_DEPENDS "_${module}")
endforeach(module)
add_custom_target("_gmshpy" DEPENDS ${GMSHPY_DEPENDS})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/__init__.py.in
${CMAKE_CURRENT_BINARY_DIR}/__init__.py)
endif(SWIG_MAJOR_VERSION EQUAL 1)
endif(SWIG_FOUND)
endif(ENABLE_SWIG)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment