Salome HOME
Fix for a crash: Create sketch, circle, Radius constraint with 0 value.
[modules/shaper.git] / src / SketcherPrs / CMakeLists.txt
index b2061ca13fcee16998a1493ddb8c45fd08fc1629..dac2c7bb506e1956eb655775db7a4806772a35eb 100644 (file)
@@ -11,6 +11,14 @@ SET(PROJECT_HEADERS
        SketcherPrs_PositionMgr.h
        SketcherPrs_Rigid.h
        SketcherPrs_HVDirection.h
+       SketcherPrs_Equal.h
+       SketcherPrs_Tangent.h
+       SketcherPrs_SensitivePoint.h
+       SketcherPrs_Radius.h
+       SketcherPrs_LengthDimension.h
+       SketcherPrs_Mirror.h
+       SketcherPrs_Transformation.h
+       SketcherPrs_Angle.h
 )
 
 SET(PROJECT_SOURCES
@@ -23,37 +31,62 @@ SET(PROJECT_SOURCES
        SketcherPrs_PositionMgr.cpp
        SketcherPrs_Rigid.cpp
        SketcherPrs_HVDirection.cpp
+       SketcherPrs_Equal.cpp
+       SketcherPrs_Tangent.cpp
+       SketcherPrs_SensitivePoint.cpp
+       SketcherPrs_Radius.cpp
+       SketcherPrs_LengthDimension.cpp
+       SketcherPrs_Mirror.cpp
+       SketcherPrs_Transformation.cpp
+       SketcherPrs_Angle.cpp
 )
 
 SET(PROJECT_LIBRARIES
     Config
     ModelAPI
     GeomAPI
+       Events
     ${CAS_KERNEL} 
     ${CAS_MODELER} 
     ${CAS_VIEWER}
     ${CAS_SHAPE}
     ${CAS_TKTopAlgo}
+    ${CAS_TKOpenGl}
 )
 
+IF(WIN32) 
+    SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} opengl32)
+ELSE()
+    SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} GL)
+ENDIF()
+
+
 SET(PROJECT_PICTURES
     icons/parallel.png
     icons/perpendicular.png
        icons/anchor.png
        icons/horisontal.png
        icons/vertical.png
+       icons/equal.png
+       icons/tangent.png
+       icons/mirror.png
+       icons/rotate.png
+       icons/translate.png
 )
 
-ADD_DEFINITIONS(-DCONSTRAINTS_EXPORTS ${CAS_DEFINITIONS})
+ADD_DEFINITIONS(-DSKETCHERPRS_EXPORTS ${CAS_DEFINITIONS})
 ADD_LIBRARY(SketcherPrs SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
 
 INCLUDE_DIRECTORIES(
   ${PROJECT_SOURCE_DIR}/src/Config
+  ${PROJECT_SOURCE_DIR}/src/Events
   ${PROJECT_SOURCE_DIR}/src/ModelAPI
   ${PROJECT_SOURCE_DIR}/src/GeomAPI
   ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
   ${PROJECT_SOURCE_DIR}/src/SketchPlugin
   ${CAS_INCLUDE_DIRS}
+  $ENV{FREETYPE_ROOT_DIR}/include
+  $ENV{FREETYPE_ROOT_DIR}/include/freetype2
 )
 
 TARGET_LINK_LIBRARIES(SketcherPrs ${PROJECT_LIBRARIES})