2 # This module finds an installed WSO2 WSF/C++ using the variable WSO2_ROOT_DIR
4 # It sets the following variables:
5 # WSO2_FOUND - set to true if WSO2 WSF/C++ is found
6 # WSO2_INCLUDE_DIR - the directories where the main include files are located
7 # WSO2_INCLUDES - the list of directories for headers search path
8 # WSO2_LIBRARIES - WSO2 WSF/C++ libraries to be linked against
10 #############################################################
11 # Copyright (C) 2013 CEA/DEN, EDF R&D, OPEN CASCADE
13 # This library is free software; you can redistribute it and/or
14 # modify it under the terms of the GNU Lesser General Public
15 # License as published by the Free Software Foundation; either
16 # version 2.1 of the License.
18 # This library is distributed in the hope that it will be useful,
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 # Lesser General Public License for more details.
23 # You should have received a copy of the GNU Lesser General Public
24 # License along with this library; if not, write to the Free Software
25 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
29 #############################################################
31 IF (NOT WSO2_FIND_QUIETLY)
32 MESSAGE(STATUS "Looking for WSO2 WSF/C++...")
35 SET(WSO2_ROOT_DIR $ENV{WSO2_ROOT_DIR})
38 LIST(APPEND CMAKE_PREFIX_PATH "${WSO2_ROOT_DIR}")
41 FIND_PATH(WSO2_INCLUDE_DIR WSFDefines.h PATH_SUFFIXES include)
42 # TODO: detect axis includes automatically, without below hardcoded search path
43 FIND_PATH(WSO2_INCLUDE_DIR_axis2 axutil_version.h PATH_SUFFIXES include include/axis2-1.6.0)
45 SET(WSO2_INCLUDES ${WSO2_INCLUDE_DIR})
46 IF(WSO2_INCLUDE_DIR_axis2)
47 LIST(APPEND WSO2_INCLUDES ${WSO2_INCLUDE_DIR_axis2} ${WSO2_INCLUDE_DIR_axis2}/platforms)
50 FIND_LIBRARY(WSO2_LIBRARY_axutil NAMES axutil)
51 FIND_LIBRARY(WSO2_LIBRARY_guththila NAMES guththila)
52 FIND_LIBRARY(WSO2_LIBRARY_neethi NAMES neethi)
53 FIND_LIBRARY(WSO2_LIBRARY_axis2_parser NAMES axis2_parser)
54 FIND_LIBRARY(WSO2_LIBRARY_axis2_axiom NAMES axis2_axiom)
55 FIND_LIBRARY(WSO2_LIBRARY_axis2_http_common NAMES axis2_http_common)
56 FIND_LIBRARY(WSO2_LIBRARY_axis2_engine NAMES axis2_engine)
57 FIND_LIBRARY(WSO2_LIBRARY_wso2_wsf NAMES wso2_wsf)
60 SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_axutil})
61 SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_guththila})
62 SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_neethi})
63 SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_axis2_parser})
64 SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_axis2_axiom})
65 SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_axis2_http_common})
66 SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_axis2_engine})
67 SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_wso2_wsf})
69 INCLUDE(FindPackageHandleStandardArgs)
70 FIND_PACKAGE_HANDLE_STANDARD_ARGS(WSO2 REQUIRED_VARS WSO2_INCLUDE_DIR WSO2_INCLUDES WSO2_LIBRARIES)