summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2018-08-14 14:29:04 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2018-08-14 14:29:04 +0100
commit0cc3dc22d3627ff044d96850144b874696b9ae2b (patch)
tree5ac6d13d39905fbbb238e6a9d1bf596c1a8fb2f6 /Wrappers
parent92794fd76d9b5274a7b9c48f4aa34c60d774f32a (diff)
downloadregularization-0cc3dc22d3627ff044d96850144b874696b9ae2b.tar.gz
regularization-0cc3dc22d3627ff044d96850144b874696b9ae2b.tar.bz2
regularization-0cc3dc22d3627ff044d96850144b874696b9ae2b.tar.xz
regularization-0cc3dc22d3627ff044d96850144b874696b9ae2b.zip
removed generator
Diffstat (limited to 'Wrappers')
-rw-r--r--Wrappers/Python/CMakeLists.txt17
1 files changed, 15 insertions, 2 deletions
diff --git a/Wrappers/Python/CMakeLists.txt b/Wrappers/Python/CMakeLists.txt
index eee4db9..59d2436 100644
--- a/Wrappers/Python/CMakeLists.txt
+++ b/Wrappers/Python/CMakeLists.txt
@@ -116,16 +116,29 @@ if (PYTHONINTERP_FOUND)
DEPENDS cilreg)
else()
- add_custom_command(OUTPUT ${OUTPUT}
+ if (WIN32)
+ add_custom_command(OUTPUT ${OUTPUT}
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/ccpi ${CMAKE_CURRENT_BINARY_DIR}/ccpi
+ COMMAND ${CMAKE_COMMAND} -E env CIL_VERSION=${CIL_VERSION}
+ PREFIX=${CMAKE_SOURCE_DIR}/Core
+ LIBRARY_INC=${CMAKE_SOURCE_DIR}/Core
+ LIBRARY_LIB=${CMAKE_BINARY_DIR}/Core/${CMAKE_BUILD_TYPE}
+ ${PYTHON_EXECUTABLE} ${SETUP_PY} build_ext --inplace
+ COMMAND ${CMAKE_COMMAND} -E touch ${OUTPUT}
+ DEPENDS cilreg)
+ else()
+ add_custom_command(OUTPUT ${OUTPUT}
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/ccpi ${CMAKE_CURRENT_BINARY_DIR}/ccpi
COMMAND ${CMAKE_COMMAND} -E env CIL_VERSION=${CIL_VERSION}
PREFIX=${CMAKE_SOURCE_DIR}/Core
LIBRARY_INC=${CMAKE_SOURCE_DIR}/Core
- LIBRARY_LIB=$<IF:WIN32,${CMAKE_BINARY_DIR}/Core/${CMAKE_BUILD_TYPE},${CMAKE_BINARY_DIR}/Core/>
+ LIBRARY_LIB=${CMAKE_BINARY_DIR}/Core
${PYTHON_EXECUTABLE} ${SETUP_PY} build_ext --inplace
COMMAND ${CMAKE_COMMAND} -E touch ${OUTPUT}
DEPENDS cilreg)
+ endif()
endif()