Commit 408c18a3 authored by WINTZ Julien's avatar WINTZ Julien

Fixing autogenerated files excepetions.

Necessary as of cmake > 3.10.
parent ca8882d9
......@@ -8,6 +8,8 @@
src/dtk/dtkConfig.h
wrp/dtkCore
qml/*/qmldir
doc/html
......
......@@ -21,31 +21,38 @@ project(dtkConceptGenerator)
set(CMAKE_AUTOMOC ON)
set(${PROJECT_NAME}_HEADERS
dtkPluginGeneratorPage.h
dtkConceptDefinitionPage.h
dtkConceptGenerator.h
dtkNewConceptPage.h
dtkIntroPage.h
generator.h)
dtkPluginGeneratorPage.h
dtkConceptDefinitionPage.h
dtkConceptGenerator.h
dtkNewConceptPage.h
dtkIntroPage.h
generator.h)
set(${PROJECT_NAME}_SOURCES
dtkPluginGeneratorPage.cpp
dtkConceptDefinitionPage.cpp
dtkConceptGenerator.cpp
dtkNewConceptPage.cpp
dtkIntroPage.cpp
generator.cpp
main.cpp)
dtkPluginGeneratorPage.cpp
dtkConceptDefinitionPage.cpp
dtkConceptGenerator.cpp
dtkNewConceptPage.cpp
dtkIntroPage.cpp
generator.cpp
main.cpp)
set(${PROJECT_NAME}_UI
dtkPluginGeneratorPage.ui
dtkConceptDefinitionPage.ui
dtkNewConceptPage.ui
dtkIntroPage.ui)
dtkPluginGeneratorPage.ui
dtkConceptDefinitionPage.ui
dtkNewConceptPage.ui
dtkIntroPage.ui)
set(${PROJECT_NAME}_RESOURCES
templates.qrc)
set_property(SOURCE ui_dtkPluginGeneratorPage.h PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE ui_dtkConceptDefinitionPage.h PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE ui_dtkNewConceptPage.h PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE ui_dtkIntroPage.h PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE qrc_templates.cpp PROPERTY SKIP_AUTOMOC ON)
## #################################################################
## Build rules
## #################################################################
......
......@@ -10,11 +10,10 @@ project(dtkDistributedDashboard)
## Sources
## #################################################################
set(${PROJECT_NAME}_SOURCES
main.cpp)
set(${PROJECT_NAME}_SOURCES main.cpp)
set(${PROJECT_NAME}_RESOURCES dtkDashboard.qrc)
set(${PROJECT_NAME}_RESOURCES
dtkDashboard.qrc)
set_property(SOURCE qrc_dtkDashboard.cpp PROPERTY SKIP_AUTOMOC ON)
## #################################################################
## Build rules
......@@ -29,8 +28,7 @@ add_executable(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME}
dtkDistributed
dtkLog
dtkWidgets
)
dtkWidgets)
target_link_libraries(${PROJECT_NAME} Qt5::Core)
target_link_libraries(${PROJECT_NAME} Qt5::Network)
......
......@@ -11,16 +11,18 @@ project(dtkDistributedSlides)
## #################################################################
set(${PROJECT_NAME}_SOURCES
main.cpp)
main.cpp)
set(${PROJECT_NAME}_RESOURCES
dtkDistributedSlides.qrc)
set_property(SOURCE qrc_dtkDistributedSlides.cpp PROPERTY SKIP_AUTOMOC ON)
## #################################################################
## Build rules
## #################################################################
qt5_add_RESOURCES(${PROJECT_NAME}_SOURCES_QRC ${${PROJECT_NAME}_RESOURCES})
qt5_add_RESOURCES(${PROJECT_NAME}_SOURCES_QRC ${${PROJECT_NAME}_RESOURCES})
add_executable(${PROJECT_NAME}
${${PROJECT_NAME}_SOURCES_QRC}
......@@ -28,8 +30,7 @@ add_executable(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME}
dtkDistributed
dtkLog
)
dtkLog)
target_link_libraries(${PROJECT_NAME} Qt5::Core)
target_link_libraries(${PROJECT_NAME} Qt5::Network)
......
......@@ -263,6 +263,8 @@ set(${PROJECT_NAME}_SOURCES
set(${PROJECT_NAME}_RCC dtkComposer.qrc)
set_property(SOURCE qrc_dtkComposer.cpp PROPERTY SKIP_AUTOMOC ON)
## #################################################################
## Build rules
## #################################################################
......
......@@ -78,6 +78,17 @@ set(${PROJECT_NAME}_SOURCES
dtkCorePluginManagerRecorder.cpp
dtkObjectManager.cpp)
set_property(SOURCE sipdtkCorecmodule.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkCoredtkCorePluginBase.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkCoredtkArray1800.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkCoredtkArray2400.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkCoredtkArray3800.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkCoredtkCoreLayerManager.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkCoredtkCorePluginManagerBase.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkCoredtkObjectManager.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE dtkCore_wrap_python.cpp PROPERTY SKIP_AUTOMOC ON)
## #################################################################
## Deps
## #################################################################
......@@ -116,15 +127,17 @@ if(DTK_BUILD_WRAPPERS)
endif(SIP_FOUND)
if(SWIG_FOUND)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dtkCore.i ${CMAKE_BINARY_DIR}/dtkCore.i COPYONLY)
set(${PROJECT_NAME}_WRAP_DEPENDS ${${PROJECT_NAME}_WRAP_DEPENDS} ${CMAKE_BINARY_DIR}/dtkCore.i)
if (DTK_WRAPPING_PYTHON AND PYTHONLIBS_FOUND)
dtk_wrap(${PROJECT_NAME} ${PROJECT_NAME}_SOURCES_WRAP dtkcore python ${PROJECT_SOURCE_DIR}/dtkCore.i "${${PROJECT_NAME}_WRAP_DEPENDS}" "${CMAKE_SOURCE_DIR}/src;${CMAKE_CURRENT_SOURCE_DIR};${CMAKE_SOURCE_DIR}/wrp/dtkBase;${CMAKE_SOURCE_DIR}/wrp/QtCore")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/dtkCore.i ${CMAKE_SOURCE_DIR}/wrp/dtkCore/dtkCore.i)
dtk_wrap(${PROJECT_NAME} ${PROJECT_NAME}_SOURCES_WRAP dtkcore python ${PROJECT_SOURCE_DIR}/dtkCore.i "${${PROJECT_NAME}_WRAP_DEPENDS}" "${CMAKE_SOURCE_DIR}/src;${CMAKE_CURRENT_SOURCE_DIR};${CMAKE_SOURCE_DIR}/wrp/dtkBase;${CMAKE_SOURCE_DIR}/wrp/QtCore")
endif()
if (DTK_WRAPPING_TCL AND TCL_FOUND)
dtk_wrap(${PROJECT_NAME} ${PROJECT_NAME}_SOURCES_WRAP dtkcore tcl ${PROJECT_SOURCE_DIR}/dtkCore.i "${${PROJECT_NAME}_WRAP_DEPENDS}" ".")
dtk_wrap(${PROJECT_NAME} ${PROJECT_NAME}_SOURCES_WRAP dtkcore tcl ${PROJECT_SOURCE_DIR}/dtkCore.i "${${PROJECT_NAME}_WRAP_DEPENDS}" ".")
endif()
if (DTK_WRAPPING_CSHARP)
......@@ -280,7 +293,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(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dtkCore.i DESTINATION wrp/dtkCore/)
## ###################################################################
## Install rules - targets
......
......@@ -34,6 +34,8 @@ set(${PROJECT_NAME}_SOURCES
dtkLogDestination.cpp
dtkLogModel.cpp)
set_property(SOURCE dtkLog_wrap_python.cpp PROPERTY SKIP_AUTOMOC ON)
## #################################################################
## Wrapping
## #################################################################
......
......@@ -110,6 +110,18 @@ set(${PROJECT_NAME}_SOURCES_RCC
dtkNotification.qrc
dtkWidgetsTagCloud.qrc)
set_property(SOURCE qrc_dtkNotification.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE qrc_dtkWidgetsTagCloud.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkWidgetscmodule.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkWidgetsdtkViewController.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkWidgetsdtkViewManager.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkWidgetsdtkViewWidget.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkWidgetsdtkViewLayout.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE sipdtkWidgetsdtkViewLayoutItem.cpp PROPERTY SKIP_AUTOMOC ON)
set_property(SOURCE dtkWidgets_wrap_python.cpp PROPERTY SKIP_AUTOMOC ON)
## #################################################################
## Wrapping
## #################################################################
......
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