Commit 39bc98c1 authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas
Browse files

wip : fix install rules for wrapping

parent 9fd8ce17
......@@ -34,6 +34,12 @@ set(CMAKE_MODULE_PATH
set(DTK_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
set(dtk_INSTALL_DOCS "@CMAKE_INSTALL_PREFIX@/doc")
set(dtk_WRAP_BASE "@CMAKE_INSTALL_PREFIX@/include/swig/dtk_base.i")
set(dtk_WRAP_CORE "@CMAKE_INSTALL_PREFIX@/include/swig/dtkCore.i")
set(dtk_WRAP_WIDGETS "@CMAKE_INSTALL_PREFIX@/include/swig/dtkWidgets.i")
set(dtk_WRAP_QVARIANT "@CMAKE_INSTALL_PREFIX@/include/swig/QVariant.i")
include("@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/cmake/dtk/dtkDepends.cmake")
include("@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@/cmake/dtk/dtkWrap.cmake")
......
......@@ -280,6 +280,7 @@ install(FILES ${${PROJECT_NAME}_HEADERS}
COMPONENT core)
install(FILES ${${PROJECT_NAME}_MODULES} DESTINATION modules)
install(FILES ${CMAKE_BINARY_DIR}/dtkCore.i DESTINATION include/swig)
## ###################################################################
## Install rules - targets
......
......@@ -14,8 +14,8 @@
%module(directors="1") dtkcore
%include "../../wrp/dtkBase/dtk_base.i"
%include "../../wrp/QtCore/qrunnable.i"
%include "dtk_base.i"
%include "qrunnable.i"
%{
......
......@@ -301,6 +301,10 @@ install(FILES ${${PROJECT_NAME}_HEADERS}
DESTINATION include/${PROJECT_NAME}
COMPONENT widgets)
install(FILES ${${PROJECT_NAME}_MODULES} DESTINATION modules)
install(FILES ${CMAKE_BINARY_DIR}/dtkWidgets.i DESTINATION include/swig)
## ###################################################################
## Install rules - targets
## ###################################################################
......
......@@ -16,10 +16,10 @@
%module dtkwidgets
%include "../../wrp/dtkBase/dtk_base.i"
%include "dtk_base.i"
%include "../../wrp/QtCore/qt_core.i"
%include "../../wrp/QtWidgets/qt_widgets.i"
%include "qt_core.i"
%include "qt_widgets.i"
%{
......
......@@ -14,6 +14,7 @@
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/qt_core.i ${CMAKE_BINARY_DIR}/qt_core.i COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/QVariant.i ${CMAKE_BINARY_DIR}/QVariant.i COPYONLY)
install(FILES ${CMAKE_BINARY_DIR}/QVariant.i DESTINATION include/swig)
######################################################################
### CMakeLists.txt ends here
......@@ -14,7 +14,7 @@
%module qtwidgets
%include "../QtCore/qt_core.i"
%include "qt_core.i"
%{
......
......@@ -13,6 +13,7 @@
### Code:
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dtk_base.i ${CMAKE_BINARY_DIR}/dtk_base.i COPYONLY)
install(FILES ${CMAKE_BINARY_DIR}/dtk_base.i DESTINATION include/swig)
######################################################################
### CMakeLists.txt ends here
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