## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-INCLUDE_DIRECTORIES(
- ${PROJECT_SOURCE_DIR}/src/Events
- ${PYTHON_INCLUDE_DIR}
- ${LIBXML2_INCLUDE_DIR}
- )
+INCLUDE(Common)
+INCLUDE(XMLProcessing)
+
+INCLUDE_DIRECTORIES (${PROJECT_SOURCE_DIR}/src/Events
+ ${PYTHON_INCLUDE_DIR})
SET(PROJECT_HEADERS
Config_def.h
SET(XML_RESOURCES
${CMAKE_CURRENT_BINARY_DIR}/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 # to disable warnings 4996
- ${LIBXML2_DEFINITIONS}
- )
+ADD_DEFINITIONS(-DCONFIG_EXPORTS -D_SCL_SECURE_NO_WARNINGS)
+# -D_SCL_SECURE_NO_WARNINGS - to disable warnings 4996
ADD_LIBRARY(Config SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES})
ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), ExchangePlugin_ExportFeature::SELECTION_LIST_ID());
ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), ExchangePlugin_ExportFeature::XAO_AUTHOR_ID());
- ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), ExchangePlugin_ExportFeature::ExchangePlugin_ExportFeature::XAO_GEOMETRY_NAME_ID());
+ ModelAPI_Session::get()->validators()->registerNotObligatory(getKind(), ExchangePlugin_ExportFeature::XAO_GEOMETRY_NAME_ID());
}
/*
# --- options ---
+INCLUDE(Common)
+INCLUDE(XMLProcessing)
+
+INCLUDE_DIRECTORIES (${PROJECT_SOURCE_DIR}/src/Events
+ ${PYTHON_INCLUDE_DIR}
+ ${CAS_INCLUDE_DIRS})
+
# additional include directories
-INCLUDE_DIRECTORIES(
- ${PTHREAD_INCLUDE_DIR}
- ${LIBXML2_INCLUDE_DIR}
- ${CAS_INCLUDE_DIRS}
- )
+#INCLUDE_DIRECTORIES(
+# ${PTHREAD_INCLUDE_DIR}
+# ${LIBXML2_INCLUDE_DIR}
+# ${CAS_INCLUDE_DIRS}
+# )
# additional preprocessor / compiler flags
-ADD_DEFINITIONS(
- ${LIBXML2_DEFINITIONS}
- ${CAS_DEFINITIONS}
- )
+#ADD_DEFINITIONS(
+# ${LIBXML2_DEFINITIONS}
+# ${CAS_DEFINITIONS}
+# )
+ADD_DEFINITIONS(${CAS_DEFINITIONS})
+
# libraries to link to
SET(_link_LIBRARIES
${CAS_TKBRep} ${CAS_TKTopAlgo} ${CAS_TKG2d}
)
+SET(PROJECT_LIBRARIES
+ ${LIBXML2_LIBRARIES}
+ ${PYTHON_LIBRARIES}
+)
+
+
# --- headers ---
SET(XAO_HEADERS