X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionAPI%2FCMakeLists.txt;h=edf38ae48c2e0bcdf829cca7d6e7d3c391467587;hb=21a0c85b52bb93f94680e2342370764e6510e387;hp=ae9364b45912e376fdb9d4bbdc4da6e3f7a04431;hpb=777b3d5c542a2edd5abb655560a576adfa2c968b;p=modules%2Fshaper.git diff --git a/src/ConstructionAPI/CMakeLists.txt b/src/ConstructionAPI/CMakeLists.txt index ae9364b45..edf38ae48 100644 --- a/src/ConstructionAPI/CMakeLists.txt +++ b/src/ConstructionAPI/CMakeLists.txt @@ -4,10 +4,14 @@ INCLUDE(Common) SET(PROJECT_HEADERS ConstructionAPI.h + ConstructionAPI_Axis.h + ConstructionAPI_Plane.h ConstructionAPI_Point.h ) SET(PROJECT_SOURCES + ConstructionAPI_Axis.cpp + ConstructionAPI_Plane.cpp ConstructionAPI_Point.cpp ) @@ -22,6 +26,15 @@ INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/src/ModelHighAPI ) +# Plugin headers dependency +INCLUDE_DIRECTORIES( + # TODO(spo): modify ConstructionPlugin headers to remove dependency on GeomAPI headers + ${PROJECT_SOURCE_DIR}/src/GeomAPI + # TODO(spo): it is for *_swig.h files. Can we eliminate it? + ${PROJECT_SOURCE_DIR}/src/GeomDataAPI + ${PROJECT_SOURCE_DIR}/src/ConstructionPlugin +) + #TODO(spo): is ${CAS_DEFINITIONS} necessary? ADD_DEFINITIONS(-DCONSTRUCTIONAPI_EXPORTS ${CAS_DEFINITIONS}) ADD_LIBRARY(ConstructionAPI SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS}) @@ -34,7 +47,7 @@ INCLUDE(PythonAPI) SET_SOURCE_FILES_PROPERTIES(ConstructionAPI.i PROPERTIES CPLUSPLUS ON) SET_SOURCE_FILES_PROPERTIES(ConstructionAPI.i PROPERTIES SWIG_DEFINITIONS "-shadow") -#TODO(spo): is ModelAPI necessary or it could be received by INTERFACE_ ? +#TODO(spo): is ModelAPI necessary or it could be received by INTERFACE_ (may require modern CMake)? SET(SWIG_LINK_LIBRARIES ConstructionAPI ModelHighAPI @@ -44,6 +57,7 @@ SET(SWIG_LINK_LIBRARIES SET(SWIG_MODULE_ConstructionAPI_EXTRA_DEPS ${SWIG_MODULE_ConstructionAPI_EXTRA_DEPS} ${PROJECT_SOURCE_DIR}/src/ModelHighAPI/ModelHighAPI.i + doxyhelp.i ${PROJECT_HEADERS} ) @@ -64,6 +78,5 @@ INCLUDE(UnitTest) ADD_UNIT_TESTS( TestPoint.py + TestAxis.py ) - -ADD_SUBDIRECTORY (Test)