From 53f299ac1a58b9d0ff88913d716e28b2708a8b2a Mon Sep 17 00:00:00 2001 From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be> Date: Thu, 3 Nov 2011 16:12:51 +0000 Subject: [PATCH] cmake : add _dgpy and _gmshpy global targets --- gmshpy/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gmshpy/CMakeLists.txt b/gmshpy/CMakeLists.txt index 9b2a87b7b9..9521b8628b 100644 --- a/gmshpy/CMakeLists.txt +++ b/gmshpy/CMakeLists.txt @@ -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) -- GitLab