Skip to content

Commit 6834233

Browse files
Daniele GiunchiDaniele Giunchi
authored andcommitted
add QtSOAP dependencies
1 parent d88a826 commit 6834233

File tree

21 files changed

+69
-45
lines changed

21 files changed

+69
-45
lines changed

CMake/FindQtSOAP.cmake

Lines changed: 0 additions & 29 deletions
This file was deleted.

CMake/mafMacroFoundationLibraries.cmake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
MACRO(mafMacroFoundationLibraries)
1313

1414
include(FindVXL)
15-
include(FindQtSOAP)
16-
17-
#include(FindQXMLRPC)
18-
1915
include(FindQScxml)
2016

2117
include(mafCopySharedLibrariesInInstallDir)
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#
2+
# QtSOAP
3+
#
4+
5+
SET(QtSOAP_DEPENDS)
6+
7+
SET(QtSOAP_enabling_variable QtSOAP_LIBRARIES)
8+
9+
SET(proj QtSOAP)
10+
SET(proj_DEPENDENCIES)
11+
12+
SET(QtSOAP_DEPENDS ${proj})
13+
14+
IF(NOT DEFINED QtSOAP_DIR)
15+
16+
# MESSAGE(STATUS "Adding project:${proj}")
17+
ExternalProject_Add(${proj}
18+
GIT_REPOSITORY "${git_protocol}://github.com/commontk/QtSOAP.git"
19+
GIT_TAG "origin/master"
20+
CMAKE_GENERATOR ${gen}
21+
INSTALL_COMMAND ""
22+
CMAKE_ARGS
23+
${ep_common_args}
24+
-DBUILD_SHARED_LIBS:BOOL=ON
25+
-DQT_QMAKE_EXECUTABLE:FILEPATH=${QT_QMAKE_EXECUTABLE}
26+
DEPENDS
27+
${proj_DEPENDENCIES}
28+
)
29+
SET(QtSOAP_DIR "${ep_build_dir}/${proj}")
30+
31+
# Since QtSOAP is statically build, there is not need to add its corresponding
32+
# library output directory to CTK_EXTERNAL_LIBRARY_DIRS
33+
34+
ELSE()
35+
ctkMacroEmptyExternalProject(${proj} "${proj_DEPENDENCIES}")
36+
ENDIF()
37+
38+
SET(${QtSOAP_enabling_variable}_LIBRARY_DIRS QtSOAP_LIBRARY_DIRS)
39+
SET(${QtSOAP_enabling_variable}_INCLUDE_DIRS QtSOAP_INCLUDE_DIRS)
40+
SET(${QtSOAP_enabling_variable}_FIND_PACKAGE_CMD QtSOAP)
41+

CMakeExternals/Find_QtSOAP.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SET(QtSOAP_DIR "${MAF_EXTERNAL_BUILD_DIR}/Build/QtSOAP")
2+
FIND_PACKAGE(QtSOAP REQUIRED)
3+
include(${QtSOAP_DIR}/QtSOAPConfig.cmake)
4+
INCLUDE(${QtSOAP_USE_FILE})

SuperBuild.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ set(MAF_DEPENDENCIES)
8484
if(MAF_EVENT_BUS)
8585
set(MAF_DEPENDENCIES ${MAF_DEPENDENCIES} qxmlrpc)
8686
include(CMakeExternals/External_qxmlrpc.cmake)
87+
88+
set(MAF_DEPENDENCIES ${MAF_DEPENDENCIES} QtSOAP)
89+
include(CMakeExternals/External_QtSOAP.cmake)
8790
endif(MAF_EVENT_BUS)
8891

8992
if(MAF_PLUGINVTK)
@@ -207,6 +210,8 @@ ExternalProject_Add(${proj}
207210
#-DVTK_DEBUG_LEAKS:BOOL=${MAF_USE_VTK_DEBUG_LEAKS}
208211
# qxmlrpc
209212
-Dqxmlrpc_DIR:PATH=${qxmlrpc_DIR} # Findqxmlrpc expects qxmlrpc_DIR variable to be defined
213+
# QtSOAP
214+
-DQtSOAP_DIR:PATH=${QtSOAP_DIR} # FindQtSOAP expects QtSOAP_DIR variable to be defined
210215
# CTK
211216
#-DCTK_DIR:PATH=${CTK_DIR}
212217
# CTKAppLauncher

src/Examples/RemoteCommunicationXMLRPC/clientXMLRPC/target_libraries.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#
66

77
SET(foundation_libraries
8-
${QXMLRPC_LIBRARY}
9-
${QTSOAP_LIBRARY}
8+
qxmlrpc
9+
QtSOAP
1010
${VXL_LIBRARY}
1111
)
1212

src/Examples/RemoteCommunicationXMLRPC/serverXMLRPC/target_libraries.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#
66

77
SET(foundation_libraries
8-
${QXMLRPC_LIBRARY}
9-
${QTSOAP_LIBRARY}
8+
qxmlrpc
9+
QtSOAP
1010
${VXL_LIBRARY}
1111
)
1212

src/Examples/SimpleApp/target_libraries.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#
66

77
SET(foundation_libraries
8-
${QXMLRPC_LIBRARY}
9-
${QTSOAP_LIBRARY}
8+
qxmlrpc
9+
QtSOAP
1010
${VXL_LIBRARY}
1111
)
1212

src/mafApplicationLogic/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
## #################################################################
1515

1616
include(${MAF_SOURCE_DIR}/CMakeExternals/Find_qxmlrpc.cmake)
17+
include(${MAF_SOURCE_DIR}/CMakeExternals/Find_QtSOAP.cmake)
1718

1819
## #################################################################
1920
## Init Project

src/mafApplicationLogic/target_libraries.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
SET(foundation_libraries
88
qxmlrpc
9-
${QTSOAP_LIBRARY}
9+
QtSOAP
1010
)
1111

1212
SET(target_libraries

0 commit comments

Comments
 (0)