Commit 8eb352e6 authored by Julien Wintz's avatar Julien Wintz
Browse files

Merge branch 'develop' of github.com:d-tk/dtk into develop

parent 74f3d734
......@@ -170,6 +170,12 @@ find_package(Qt5 REQUIRED COMPONENTS
Widgets
Xml)
## ###################################################################
##
## ###################################################################
include(${CMAKE_SOURCE_DIR}/cmake/dtkWrap.cmake)
## ###################################################################
## Doc setup
## ###################################################################
......@@ -181,105 +187,6 @@ get_target_property(QT5_QMAKE_EXECUTABLE Qt5::qmake LOCATION)
get_filename_component(QT5_BINARY_DIR ${QT5_QMAKE_EXECUTABLE} PATH)
## #################################################################
## Wrapping
## #################################################################
if(DTK_BUILD_WRAPPERS)
## #################################################################
## Swig
## #################################################################
mark_as_advanced(SWIG_DIR)
mark_as_advanced(SWIG_EXECUTABLE)
mark_as_advanced(SWIG_VERSION)
find_package(SWIG REQUIRED)
if(SWIG_FOUND)
include(${SWIG_USE_FILE})
set(CMAKE_SWIG_FLAGS "")
macro(dtk_wrap project target name language input deps)
set(wrap_output ${project}_wrap_${language}.cpp)
add_custom_command(
OUTPUT ${wrap_output}
COMMAND ${SWIG_EXECUTABLE}
ARGS
"-${language}"
"-c++"
"-module" ${name}
"-I${PROJECT_SOURCE_DIR}/.."
"-I${PROJECT_SOURCE_DIR}/"
"-I${dtk_SOURCE_DIR}/"
"-I${dtk_SOURCE_DIR}/src"
"-I${dtk_SOURCE_DIR}/src/dtkCoreSupport"
"-outdir" ${CMAKE_CURRENT_BINARY_DIR}
"-o" ${wrap_output}
${input}
MAIN_DEPENDENCY ${input}
COMMENT "Wrapping ${input} to ${language}")
set(${target} ${${target}} ${wrap_output})
endmacro(dtk_wrap)
else(SWIG_FOUND)
message("DTK_BUILD_WRAPPERS options requires SWIG.")
endif(SWIG_FOUND)
if(SWIG_FOUND)
add_definitions(-DHAVE_SWIG)
endif(SWIG_FOUND)
## #################################################################
## Tcl
## #################################################################
find_package(TCL QUIET)
if(TCL_FOUND)
include_directories(${TCL_INCLUDE_PATH})
endif(TCL_FOUND)
if(TCL_FOUND)
add_definitions(-DHAVE_TCL) # Towards deprecation
set(DTK_HAVE_TCL 1)
else(TCL_FOUND)
set(DTK_HAVE_TCL 0)
endif(TCL_FOUND)
## #################################################################
## Python
## #################################################################
set(DTK_PYTHON_VERSION 2 CACHE STRING "Python version to use: 2, 2.x, 3, 3.x, or empty")
find_package(PythonInterp ${DTK_PYTHON_VERSION})
find_package(PythonLibs QUIET)
if(PYTHONLIBS_FOUND)
include_directories(${PYTHON_INCLUDE_DIRS})
get_filename_component(PYTHON_PATH ${PYTHON_LIBRARIES} PATH)
link_directories(${PYTHON_PATH})
add_definitions(-DHAVE_PYTHON) # Towards deprecation
set(DTK_HAVE_PYTHON 1)
else(PYTHONLIBS_FOUND)
set(DTK_HAVE_PYTHON 0)
endif(PYTHONLIBS_FOUND)
## #################################################################
## Build wrappers (end)
## #################################################################
endif(DTK_BUILD_WRAPPERS)
## #################################################################
## Dependencies - Optional [TO BE REMOVED]
## #################################################################
......@@ -427,6 +334,7 @@ add_subdirectory(src)
add_subdirectory(tst)
add_subdirectory(app)
add_subdirectory(doc)
add_subdirectory(wrp)
## ###################################################################
## Exporting
......@@ -444,10 +352,13 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/dtkConfigVersion.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/dtkConfigVersion.cmake" @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/dtkSetTestEnvironment.cmake.in
"${CMAKE_CURRENT_BINARY_DIR}/dtkSetTestEnvironment.cmake" @ONLY)
"${CMAKE_CURRENT_BINARY_DIR}/dtkSetTestEnvironment.cmake" @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/dtkCodeCoverage.cmake
"${CMAKE_CURRENT_BINARY_DIR}/dtkCodeCoverage.cmake" @ONLY)
"${CMAKE_CURRENT_BINARY_DIR}/dtkCodeCoverage.cmake" @ONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/dtkWrap.cmake
"${CMAKE_CURRENT_BINARY_DIR}/dtkWrap.cmake" COPYONLY)
set_directory_properties(PROPERTIES TEST_INCLUDE_FILE "${CMAKE_CURRENT_BINARY_DIR}/dtkSetTestEnvironment.cmake")
......@@ -456,9 +367,9 @@ install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/dtkConfigVersion.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/dtkCodeCoverage.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/dtkSetTestEnvironment.cmake"
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/dtk)
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/dtk)
install(EXPORT dtkDepends DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/dtk)
install(EXPORT dtkDepends DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/dtk)
## ###################################################################
## Beautifying
......@@ -494,17 +405,5 @@ mark_as_advanced(DTK_ENABLE_MEMCHECK)
mark_as_advanced(DTK_COVERAGE_USE_COBERTURA)
mark_as_advanced(DTK_PYTHON_VERSION)
## ###################################################################
## Packaging
## ###################################################################
include(InstallRequiredSystemLibraries)
set(CPACK_PACKAGE_VERSION_MAJOR "${dtk_VERSION_MAJOR}")
set(CPACK_PACKAGE_VERSION_MINOR "${dtk_VERSION_MINOR}")
set(CPACK_PACKAGE_VERSION_PATCH "${dtk_VERSION_PATCH}")
include(CPack)
######################################################################
### CMakeLists.txt ends here
......@@ -20,6 +20,8 @@ set(DTK_BUILD_64 @DTK_BUILD_64@)
## - dtk_INCLUDE_DIRS
## ###################################################################
set(dtk_INCLUDE_DIR "@CMAKE_CURRENT_SOURCE_DIR@")
set(dtk_INCLUDE_DIRS
"@CMAKE_CURRENT_SOURCE_DIR@"
"@CMAKE_CURRENT_SOURCE_DIR@/include"
......@@ -33,6 +35,8 @@ set(dtk_INCLUDE_DIRS
"@CMAKE_CURRENT_BINARY_DIR@")
include("@CMAKE_BINARY_DIR@/dtkDepends.cmake")
include("@CMAKE_BINARY_DIR@/dtkWrap.cmake")
set_directory_properties(PROPERTIES TEST_INCLUDE_FILE "@CMAKE_BINARY_DIR@/dtkSetTestEnvironment.cmake")
find_package(Qt5 REQUIRED COMPONENTS
......@@ -45,8 +49,11 @@ find_package(Qt5 REQUIRED COMPONENTS
Widgets
Xml)
set(dtk_MODULE_PATH "@CMAKE_BINARY_DIR@")
set(dtk_INSTALL_DOCS @dtk_INSTALL_DOCS@)
set(dtk_CONFIG_DOCS @dtk_CONFIG_DOCS@)
set(dtk_WRAP_BASE "@CMAKE_BINARY_DIR@/dtk_base.i")
set(dtk_WRAP_CORE "@CMAKE_BINARY_DIR@/dtkCore.i")
## ###################################################################
## Options
......@@ -87,6 +94,12 @@ if(DTK_BUILD_SCRIPT)
set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS} "@CMAKE_CURRENT_SOURCE_DIR@/src/dtkScript")
endif(DTK_BUILD_SCRIPT)
if(DTK_BUILD_WRAPPERS)
set(DTK_WRAPPING_PYTHON @DTK_WRAPPING_PYTHON@)
set(DTK_WRAPPING_CSHARP @DTK_WRAPPING_CSHARP@)
set(DTK_WRAPPING_TCL @DTK_WRAPPING_TCL@)
endif(DTK_BUILD_WRAPPERS)
if(DTK_BUILD_WIDGETS)
set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS}
"@CMAKE_CURRENT_SOURCE_DIR@/src/dtkWidgets")
......
......@@ -87,6 +87,12 @@ if(DTK_BUILD_SCRIPT)
set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS} "@CMAKE_INSTALL_PREFIX/include/dtkScript")
endif(DTK_BUILD_SCRIPT)
if(DTK_BUILD_WRAPPERS)
set(DTK_WRAPPING_PYTHON @DTK_WRAPPING_PYTHON@)
set(DTK_WRAPPING_CSHARP @DTK_WRAPPING_CSHARP@)
set(DTK_WRAPPING_TCL @DTK_WRAPPING_TCL@)
endif(DTK_BUILD_WRAPPERS)
if(DTK_BUILD_WIDGETS)
set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS}
"@CMAKE_INSTALL_PREFIX@/include/dtkWidgets")
......
## Version: $Id$
##
######################################################################
##
### Commentary:
##
######################################################################
##
### Change Log:
##
######################################################################
##
### Code:
if(DTK_BUILD_WRAPPERS)
mark_as_advanced(SWIG_DIR)
mark_as_advanced(SWIG_EXECUTABLE)
mark_as_advanced(SWIG_VERSION)
find_package(SWIG QUIET)
if(SWIG_FOUND)
include(${SWIG_USE_FILE})
set(CMAKE_SWIG_FLAGS "")
macro(dtk_wrap project target name language input deps)
set(wrap_output ${project}_wrap_${language}.cpp)
add_custom_command(
OUTPUT ${wrap_output}
COMMAND ${SWIG_EXECUTABLE}
ARGS
"-${language}"
"-c++"
"-module" ${name}
"-I${PROJECT_SOURCE_DIR}/.."
"-I${PROJECT_SOURCE_DIR}/"
"-I${dtk_INCLUDE_DIR}/"
"-I${dtk_INCLUDE_DIR}/src"
"-I${dtk_INCLUDE_DIR}/src/dtkCore"
"-I${dtk_INCLUDE_DIR}/src/dtkCoreSupport"
"-outdir" ${CMAKE_CURRENT_BINARY_DIR}
"-o" ${wrap_output}
${input}
MAIN_DEPENDENCY ${input}
COMMENT "Wrapping ${input} to ${language}")
set(${target} ${${target}} ${wrap_output})
endmacro(dtk_wrap)
if(DTK_BUILD_WRAPPERS)
option(DTK_WRAPPING_PYTHON "Build python wrapper" OFF)
option(DTK_WRAPPING_TCL "Build TCL wrapper" OFF)
option(DTK_WRAPPING_CSHARP "Build C# wrapper" OFF)
endif(DTK_BUILD_WRAPPERS)
else(SWIG_FOUND)
message("DTK_BUILD_WRAPPERS options requires SWIG.")
endif(SWIG_FOUND)
if(SWIG_FOUND)
add_definitions(-DHAVE_SWIG)
endif(SWIG_FOUND)
## #################################################################
## Tcl
## #################################################################
find_package(TCL QUIET)
if(TCL_FOUND)
include_directories(${TCL_INCLUDE_PATH})
endif(TCL_FOUND)
if(TCL_FOUND)
add_definitions(-DHAVE_TCL) # Towards deprecation
set(DTK_HAVE_TCL 1)
else(TCL_FOUND)
set(DTK_HAVE_TCL 0)
endif(TCL_FOUND)
## #################################################################
## Python
## #################################################################
set(DTK_PYTHON_VERSION 2 CACHE STRING "Python version to use: 2, 2.x, 3, 3.x, or empty")
find_package(PythonInterp ${DTK_PYTHON_VERSION})
find_package(PythonLibs QUIET)
if(PYTHONLIBS_FOUND)
include_directories(${PYTHON_INCLUDE_DIRS})
get_filename_component(PYTHON_PATH ${PYTHON_LIBRARIES} PATH)
link_directories(${PYTHON_PATH})
add_definitions(-DHAVE_PYTHON) # Towards deprecation
set(DTK_HAVE_PYTHON 1)
else(PYTHONLIBS_FOUND)
set(DTK_HAVE_PYTHON 0)
endif(PYTHONLIBS_FOUND)
endif(DTK_BUILD_WRAPPERS)
######################################################################
### dtkWrap.cmake ends here
......@@ -83,19 +83,48 @@ if (DTK_HAVE_ZLIB)
dtkIOCompressor.cpp)
endif (DTK_HAVE_ZLIB)
## #################################################################
## Wrapping
## #################################################################
set(${PROJECT_NAME}_SOURCES_WRAP)
if(DTK_BUILD_WRAPPERS AND SWIG_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dtkCore.i ${CMAKE_BINARY_DIR}/dtkCore.i COPYONLY)
set(${PROJECT_NAME}_WRAP_DEPENDS ${${PROJECT_NAME}_HEADERS})
if (DTK_WRAPPING_PYTHON)
if (PYTHONLIBS_FOUND)
dtk_wrap(${PROJECT_NAME} ${PROJECT_NAME}_SOURCES_WRAP dtkcore python ${PROJECT_SOURCE_DIR}/dtkCore.i ${${PROJECT_NAME}_WRAP_DEPENDS})
endif()
endif()
if (DTK_WRAPPING_TCL)
if (TCL_FOUND)
dtk_wrap(${PROJECT_NAME} ${PROJECT_NAME}_SOURCES_WRAP dtkcore tcl ${PROJECT_SOURCE_DIR}/dtkCore.i ${${PROJECT_NAME}_WRAP_DEPENDS})
endif()
endif()
if (DTK_WRAPPING_CSHARP)
dtk_wrap(${PROJECT_NAME} ${PROJECT_NAME}_SOURCES_WRAP dtkcore csharp ${PROJECT_SOURCE_DIR}/dtkCore.i ${${PROJECT_NAME}_WRAP_DEPENDS})
endif()
endif()
## #################################################################
## Build rules
## #################################################################
add_library(${PROJECT_NAME} SHARED
${${PROJECT_NAME}_SOURCES}
${${PROJECT_NAME}_SOURCES_WRAP}
${${PROJECT_NAME}_HEADERS})
## ###################################################################
## Link rules
## ###################################################################
if (DTK_HAVE_ZLIB)
target_link_libraries(${PROJECT_NAME} ${ZLIB_LIBRARIES} )
endif (DTK_HAVE_ZLIB)
......@@ -104,6 +133,18 @@ target_link_libraries(${PROJECT_NAME} dtkMeta dtkLog)
target_link_libraries(${PROJECT_NAME} Qt5::Core)
if(DTK_BUILD_WRAPPERS AND SWIG_FOUND)
if (DTK_WRAPPING_TCL AND TCL_FOUND)
target_link_libraries(${PROJECT_NAME} ${TCL_LIBRARY})
endif()
if(DTK_WRAPPING_PYTHON AND PYTHONLIBS_FOUND)
target_link_libraries(${PROJECT_NAME} ${PYTHON_LIBRARIES})
endif()
endif(DTK_BUILD_WRAPPERS AND SWIG_FOUND)
## #################################################################
## Target properties
## #################################################################
......@@ -132,6 +173,58 @@ set(${PROJECT_NAME}_HEADERS
"${CMAKE_BINARY_DIR}/${PROJECT_NAME}Export"
"${CMAKE_BINARY_DIR}/${PROJECT_NAME}Export.h")
## #################################################################
## Handling of generated script modules
## #################################################################
set(${PROJECT_NAME}_MODULES)
if(DTK_BUILD_WRAPPERS AND SWIG_FOUND)
if(DTK_WRAPPING_PYTHON AND PYTHONLIBS_FOUND )
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
DEPENDS ${PROJECT_SOURCE_DIR}/dtkCore.i
COMMAND ${CMAKE_COMMAND} ARGS -E make_directory ${CMAKE_BINARY_DIR}/modules
COMMAND ${CMAKE_COMMAND} ARGS -E copy_if_different ${${PROJECT_NAME}_BINARY_DIR}/dtkcore.py ${CMAKE_BINARY_DIR}/modules
COMMENT "-- Moving python modules to ${CMAKE_BINARY_DIR}/modules")
set(${PROJECT_NAME}_MODULES ${CMAKE_BINARY_DIR}/modules/dtkcore.py)
if(APPLE)
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
DEPENDS ${PROJECT_SOURCE_DIR}/dtkCore.i
COMMAND ln -sf ../lib/libdtkCore.dylib _dtkcore.so
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/modules)
set(${PROJECT_NAME}_MODULES ${${PROJECT_NAME}_MODULES} ${CMAKE_BINARY_DIR}/modules/_dtkcore.so)
endif(APPLE)
if(UNIX AND NOT APPLE)
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
DEPENDS ${PROJECT_SOURCE_DIR}/dtkCore.i
COMMAND ln -fs ../${CMAKE_INSTALL_LIBDIR}/libdtkCore.so _dtkcore.so
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/modules)
set(${PROJECT_NAME}_MODULES ${${PROJECT_NAME}_MODULES} ${CMAKE_BINARY_DIR}/modules/_dtkcore.so)
endif(UNIX AND NOT APPLE)
endif(DTK_WRAPPING_PYTHON AND PYTHONLIBS_FOUND )
if (DTK_WRAPPING_CSHARP)
file(GLOB DTK_CSHARP_SOURCES "${${PROJECT_NAME}_BINARY_DIR}/*.cs")
foreach(DTK_CSHARP_SOURCE ${DTK_CSHARP_SOURCES})
add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
DEPENDS ${PROJECT_SOURCE_DIR}/dtkCore.i
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)
## ###################################################################
## Install rules - files
## ###################################################################
......@@ -140,6 +233,8 @@ install(FILES ${${PROJECT_NAME}_HEADERS}
DESTINATION include/${PROJECT_NAME}
COMPONENT core)
install(FILES ${${PROJECT_NAME}_MODULES} DESTINATION modules)
## ###################################################################
## Install rules - targets
## ###################################################################
......
/* Version: $Id$
*
*/
/* Commentary:
*
*/
/* Change Log:
*
*/
/* Code: */
#pragma once
%module core
%include "../../wrp/dtk_base.i"
%{
#include <dtkCore/dtkCorePlugin.h>
#include <dtkCore/dtkCorePluginManager.h>
#include <dtkCore/dtkCorePluginFactory.h>
%}
// /////////////////////////////////////////////////////////////////
// Macro undefinition
// /////////////////////////////////////////////////////////////////
#undef DTKCORE_EXPORT
#define DTKCORE_EXPORT
// /////////////////////////////////////////////////////////////////
// Wrapper input
// /////////////////////////////////////////////////////////////////
%include <dtkCore/dtkCorePluginManager.h>
%include <dtkCore/dtkCorePluginFactory.h>
/* dtkCore.i ends here */
......@@ -15,6 +15,7 @@
#pragma once
#include <dtkCoreExport.h>
#include "dtkCoreLayerManager.h"
#include "dtkCorePluginManager.h"
#include "dtkCorePluginFactory.h"
......@@ -61,7 +62,7 @@ public:
// DTK_DECLARE_PLUGIN_FACTORY
// ///////////////////////////////////////////////////////////////////
#define DTK_DECLARE_PLUGIN_FACTORY(type,Export) \
#define DTK_DECLARE_PLUGIN_FACTORY(type, Export) \
class Export type##PluginFactory : public dtkCorePluginFactory<type> {}; \
template <typename T> type *type##Creator() { return new T; };
......@@ -69,7 +70,7 @@ public:
// DTK_DECLARE_PLUGIN_MANAGER
// ///////////////////////////////////////////////////////////////////
#define DTK_DECLARE_PLUGIN_MANAGER(type,Export) \
#define DTK_DECLARE_PLUGIN_MANAGER(type, Export) \
class Export type##PluginManager : public dtkCorePluginManager<type##Plugin> {};
// ///////////////////////////////////////////////////////////////////
......
......@@ -16,7 +16,7 @@
#include <QtCore>
template < typename T > class dtkCorePluginTuner;
template <typename T> class dtkCorePluginTuner;
// ///////////////////////////////////////////////////////////////////
// dtkCorePluginFactory
......@@ -25,7 +25,7 @@ template < typename T > class dtkCorePluginTuner;
template <typename T> class dtkCorePluginFactory : public QObject
{
public:
dtkCorePluginFactory(void);
dtkCorePluginFactory(void);
~dtkCorePluginFactory(void);
public:
......
......@@ -105,10 +105,6 @@ if(DTK_BUILD_WRAPPERS AND SWIG_FOUND)
set(${PROJECT_NAME}_WRAP_DEPENDS ${${PROJECT_NAME}_HEADERS})
option(DTK_WRAPPING_PYTHON "Build python wrapper" OFF)
option(DTK_WRAPPING_TCL "Build TCL wrapper" OFF)
option(DTK_WRAPPING_CSHARP "Build C# wrapper" OFF)
if (DTK_WRAPPING_PYTHON)
if (PYTHONLIBS_FOUND)
dtk_wrap(${PROJECT_NAME} ${PROJECT_NAME}_SOURCES_WRAP dtkcoresupport python ${PROJECT_SOURCE_DIR}/dtkCoreSupport.i ${${PROJECT_NAME}_WRAP_DEPENDS})
......
......@@ -48,10 +48,6 @@ set(${PROJECT_NAME}_HEADERS
dtkViewList.h
dtkViewListControl.h)
if(DTK_BUILD_SCRIPT)
set(${PROJECT_NAME}_HEADERS ${${PROJECT_NAME}_HEADERS} dtkInterpreter.h)
endif(DTK_BUILD_SCRIPT)
set(${PROJECT_NAME}_SOURCES
dtkAboutBox.cpp
dtkAboutPlugin.cpp
......@@ -77,11 +73,6 @@ set(${PROJECT_NAME}_SOURCES
dtkViewList.cpp
dtkViewListControl.cpp)
if(DTK_BUILD_SCRIPT)
set(${PROJECT_NAME}_SOURCES ${${PROJECT_NAME}_SOURCES}
dtkInterpreter.cpp)
endif(DTK_BUILD_SCRIPT)
if(APPLE)
set(${PROJECT_NAME}_SOURCES
${${PROJECT_NAME}_SOURCES}
......
......@@ -34,16 +34,62 @@ set(${PROJECT_NAME}_SOURCES
dtkLogDestination.cpp
dtkLogModel.cpp)
## #################################################################
## Wrapping
## #################################################################
set(${PROJECT_NAME}_SOURCES_WRAP)
if(DTK_BUILD_WRAPPERS AND SWIG_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dtkLog.i ${CMAKE_BINARY_DIR}/dtkLog.i COPYONLY)
set(${PROJECT_NAME}_WRAP_DEPENDS ${${PROJECT_NAME}_HEADERS})
if (DTK_WRAPPING_PYTHON)
if (PYTHONLIBS_FOUND)
dtk_wrap(${PROJECT_NAME} ${PROJECT_NAME}_SOURCES_WRAP dtklog python ${PROJECT_SOURCE_DIR}/dtkLog.i ${${PROJECT_NAME}_WRAP_DEPENDS})
endif()
endif()
if (DTK_WRAPPING_TCL)
if (TCL_FOUND)
dtk_wrap(${PROJECT_NAME} ${PROJECT_NAME}_SOURCES_WRAP dtklog tcl ${PROJECT_SOURCE_DIR}/dtkLog.i ${${PROJECT_NAME}_WRAP_DEPENDS})
endif()
endif()
if (DTK_WRAPPING_CSHARP)
dtk_wrap(${PROJECT_NAME} ${PROJECT_NAME}_SOURCES_WRAP dtklog csharp ${PROJECT_SOURCE_DIR}/dtkLog.i ${${PROJECT_NAME}_WRAP_DEPENDS})
endif()
endif()
## #################################################################