# - Find WSO2 WSF/C++ # This module finds an installed WSO2 WSF/C++ using the variable WSO2_ROOT_DIR # as a lookup path. # It sets the following variables: # WSO2_FOUND - set to true if WSO2 WSF/C++ is found # WSO2_INCLUDE_DIR - the directories where the main include files are located # WSO2_INCLUDES - the list of directories for headers search path # WSO2_LIBRARIES - WSO2 WSF/C++ libraries to be linked against ############################################################# # Copyright (C) 2013-2014 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # IF (NOT WSO2_FIND_QUIETLY) MESSAGE(STATUS "Looking for WSO2 WSF/C++...") ENDIF () SET(WSO2_ROOT_DIR $ENV{WSO2_ROOT_DIR}) IF(WSO2_ROOT_DIR) LIST(APPEND CMAKE_PREFIX_PATH "${WSO2_ROOT_DIR}") ENDIF(WSO2_ROOT_DIR) FIND_PATH(WSO2_INCLUDE_DIR WSFDefines.h PATH_SUFFIXES include) # TODO: detect axis includes automatically, without below hardcoded search path FIND_PATH(WSO2_INCLUDE_DIR_axis2 axutil_version.h PATH_SUFFIXES include include/axis2-1.6.0) SET(WSO2_INCLUDES ${WSO2_INCLUDE_DIR}) IF(WSO2_INCLUDE_DIR_axis2) LIST(APPEND WSO2_INCLUDES ${WSO2_INCLUDE_DIR_axis2} ${WSO2_INCLUDE_DIR_axis2}/platforms) ENDIF() FIND_LIBRARY(WSO2_LIBRARY_axutil NAMES axutil) FIND_LIBRARY(WSO2_LIBRARY_guththila NAMES guththila) FIND_LIBRARY(WSO2_LIBRARY_neethi NAMES neethi) FIND_LIBRARY(WSO2_LIBRARY_axis2_parser NAMES axis2_parser) IF(WIN32) FIND_LIBRARY(WSO2_LIBRARY_axis2_axiom NAMES axiom) ELSE() FIND_LIBRARY(WSO2_LIBRARY_axis2_axiom NAMES axis2_axiom) FIND_LIBRARY(WSO2_LIBRARY_axis2_http_common NAMES axis2_http_common) ENDIF() FIND_LIBRARY(WSO2_LIBRARY_axis2_engine NAMES axis2_engine) FIND_LIBRARY(WSO2_LIBRARY_wso2_wsf NAMES wso2_wsf) SET(WSO2_LIBRARIES) SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_axutil}) SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_guththila}) SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_neethi}) SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_axis2_parser}) SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_axis2_axiom}) IF(NOT WIN32) SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_axis2_http_common}) ENDIF() SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_axis2_engine}) SET(WSO2_LIBRARIES ${WSO2_LIBRARIES} ${WSO2_LIBRARY_wso2_wsf}) INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(WSO2 REQUIRED_VARS WSO2_INCLUDE_DIR WSO2_INCLUDES WSO2_LIBRARIES)