Commit 70a226d4 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

fix WRAPPERS cmake

parent 5b7d7c2e
......@@ -142,11 +142,11 @@ target_link_libraries(${PROJECT_NAME}
if(DTK_BUILD_WRAPPERS AND SWIG_FOUND)
if(TCL_FOUND)
if (DTK_WRAPPING_TCL AND TCL_FOUND)
target_link_libraries(${PROJECT_NAME} ${TCL_LIBRARY})
endif()
if(PYTHONLIBS_FOUND)
if(DTK_WRAPPING_PYTHON AND PYTHONLIBS_FOUND)
target_link_libraries(${PROJECT_NAME} ${PYTHON_LIBRARIES})
endif()
......@@ -181,7 +181,7 @@ set(${PROJECT_NAME}_MODULES)
if(DTK_BUILD_WRAPPERS AND SWIG_FOUND)
if(PYTHONLIBS_FOUND)
if(DTK_WRAPPING_PYTHON AND PYTHONLIBS_FOUND )
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
DEPENDS ${PROJECT_SOURCE_DIR}/dtkCoreSupport.i
......@@ -209,7 +209,9 @@ if(DTK_BUILD_WRAPPERS AND SWIG_FOUND)
set(${PROJECT_NAME}_MODULES ${${PROJECT_NAME}_MODULES} ${CMAKE_BINARY_DIR}/modules/_dtkcoresupport.so)
endif(UNIX AND NOT APPLE)
endif(PYTHONLIBS_FOUND)
endif(DTK_WRAPPING_PYTHON AND PYTHONLIBS_FOUND )
if (DTK_WRAPPING_CSHARP)
file(GLOB DTK_CSHARP_SOURCES "${${PROJECT_NAME}_BINARY_DIR}/*.cs")
......@@ -219,6 +221,7 @@ if(DTK_BUILD_WRAPPERS AND SWIG_FOUND)
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${DTK_CSHARP_SOURCE} ${CMAKE_BINARY_DIR}/modules
COMMENT "-- Moving csharp ${DTK_CSHARP_SOURCE} source to ${CMAKE_BINARY_DIR}/modules")
endforeach(DTK_CSHARP_SOURCE ${DTK_CSHARP_SOURCES})
endif (DTK_WRAPPING_CSHARP)
endif(DTK_BUILD_WRAPPERS AND SWIG_FOUND)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment