IF(DEFINED ENV{LIBXML2_ROOT_DIR})
IF(WIN32)
FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/lib/libxml2.lib LIBXML2_LIBRARIES)
- FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/include LIBXML2_INCLUDE_DIR)
+ FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/include LIBXML2_INCLUDE_DIR)
ELSE()
FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/lib/libxml2.so LIBXML2_LIBRARIES)
- FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/include/libxml2 LIBXML2_INCLUDE_DIR)
+ FILE(TO_CMAKE_PATH $ENV{LIBXML2_ROOT_DIR}/include/libxml2 LIBXML2_INCLUDE_DIR)
ENDIF()
ENDIF()
FIND_PACKAGE(LibXml2 REQUIRED)
-
-ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
-INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR})
-LINK_DIRECTORIES (${LIBXML2_LIBRARIES})
INCLUDE(FindSalome)
INCLUDE(FindCAS)
INCLUDE(FindSUIT)
+INCLUDE(XMLProcessing)
IF(UNIX)
IF(CMAKE_COMPILER_IS_GNUCC)
ENDIF(NOT ${HAVE_SALOME})
ADD_SUBDIRECTORY (src/XGUI)
+ADD_SUBDIRECTORY (src/XAO)
ADD_SUBDIRECTORY (src/ExchangePlugin)
ADD_SUBDIRECTORY (src/GeomValidators)
ADD_SUBDIRECTORY (src/InitializationPlugin)
## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-INCLUDE(Common)
-INCLUDE(XMLProcessing)
-
-INCLUDE_DIRECTORIES (${PROJECT_SOURCE_DIR}/src/Events
- ${PYTHON_INCLUDE_DIR})
+INCLUDE_DIRECTORIES(
+ ${PROJECT_SOURCE_DIR}/src/Events
+ ${PYTHON_INCLUDE_DIR}
+ ${LIBXML2_INCLUDE_DIR}
+ )
SET(PROJECT_HEADERS
Config_def.h
Config_SelectionFilterMessage.h
Config_ValidatorReader.h
Config_DataModelReader.h
- )
+ )
SET(PROJECT_SOURCES
Config_FeatureMessage.cpp
Config_SelectionFilterMessage.cpp
Config_ValidatorReader.cpp
Config_DataModelReader.cpp
-)
+ )
SET(XML_RESOURCES
plugins.xml
dataModel.xml
-)
+ )
SET(PROJECT_LIBRARIES
- Events
- ${LIBXML2_LIBRARIES}
- ${PYTHON_LIBRARIES}
-)
+ Events
+ ${LIBXML2_LIBRARIES}
+ ${PYTHON_LIBRARIES}
+ )
-SOURCE_GROUP ("Resource Files" FILES ${XML_RESOURCES})
+SOURCE_GROUP("Resource Files" FILES ${XML_RESOURCES})
-ADD_DEFINITIONS(-DCONFIG_EXPORTS -D_SCL_SECURE_NO_WARNINGS)
-# -D_SCL_SECURE_NO_WARNINGS - to disable warnings 4996
+ADD_DEFINITIONS(
+ -DCONFIG_EXPORTS
+ -D_SCL_SECURE_NO_WARNINGS # to disable warnings 4996
+ ${LIBXML2_DEFINITIONS}
+ )
ADD_LIBRARY(Config SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
-IF(SALOME_BUILD_TESTS)
- ADD_SUBDIRECTORY(tests)
-ENDIF(SALOME_BUILD_TESTS)
+#IF(SALOME_BUILD_TESTS)
+# ADD_SUBDIRECTORY(tests)
+#ENDIF(SALOME_BUILD_TESTS)
# --- options ---
# --- headers ---
SET(XAO_HEADERS
- XAO.hxx
+ XAO.hxx
XAO_BooleanField.hxx
XAO_BooleanStep.hxx
XAO_BrepGeometry.hxx
# --- rules ---
-ADD_LIBRARY(XAO ${XAO_SOURCES})
+ADD_LIBRARY(XAO SHARED ${XAO_SOURCES})
TARGET_LINK_LIBRARIES(XAO ${_link_LIBRARIES})
-INSTALL(TARGETS XAO EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
+#INSTALL(TARGETS XAO EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
+INSTALL(TARGETS XAO DESTINATION bin)
-INSTALL(FILES ${XAO_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})
+#INSTALL(FILES ${XAO_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})