# Copyright (C) 2013 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. # # 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 # # [ additional include dirs ] INCLUDE_DIRECTORIES( ${WSO2_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ) # [ headers to be installed ] SET(SimanIO_HEADERS SimanIO_Activity.hxx SimanIO_Configuration.hxx SimanIO_Document.hxx SimanIO_Link.hxx SimanIO.hxx ) # [ generated sources ] # TODO: add procedure of automatic generation of the sources from the skeleton # TODO: this will raise dependency of SimanIO on SIMAN (where skeleton file is) # and Apache Axis2/Java (which is used to generate wrappings) SET(_generated_SOURCES CheckIn.cpp CheckInResponse.cpp CreateConfigFile.cpp CreateConfigFileResponse.cpp GetFile.cpp GetFileResponse.cpp PutFile.cpp PutFileResponse.cpp SimanSalomeServiceStub.cpp ) # [ static sources ] SET(_other_SOURCES SimanIO_Activity.cxx SimanIO_Configuration.cxx SimanIO_Document.cxx SimanIO_Link.cxx ) # [ all sources to be compiled ] SET(SimanIO_SOURCES ${_generated_SOURCES} ${_other_SOURCES} ) # [ target: library ] ADD_LIBRARY(SimanIO SHARED ${SimanIO_SOURCES}) TARGET_LINK_LIBRARIES(SimanIO ${PLATFORM_LIBS} ${WSO2_LIBRARIES}) SET_TARGET_PROPERTIES(SimanIO PROPERTIES COMPILE_DEFINITIONS "AXIS2_DECLARE_EXPORT") #SET_TARGET_PROPERTIES(SimanIO PROPERTIES COMPILE_DEFINITIONS "AXIS2_SVR_MULTI_THREADED") INSTALL(TARGETS SimanIO EXPORT ${PROJECT_NAME}Targets DESTINATION lib) INSTALL(FILES ${SimanIO_HEADERS} DESTINATION include) # [ target: test ] #ADD_EXECUTABLE(TestCreateConfigFile TestCreateConfigFile.cpp) #TARGET_LINK_LIBRARIES(TestCreateConfigFile SimanIO) #SET_TARGET_PROPERTIES(SimanIO PROPERTIES COMPILE_DEFINITIONS "AXIS2_DECLARE_EXPORT") ##SET_TARGET_PROPERTIES(SimanIO PROPERTIES COMPILE_DEFINITIONS "AXIS2_SVR_MULTI_THREADED") #INSTALL(TARGETS TestCreateConfigFile DESTINATION bin)