1 # Copyright (C) 2014-2019 CEA/DEN, EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 IF(NOT DEFINED ENV{FREETYPE_DIR})
21 SET(ENV{FREETYPE_DIR} $ENV{FREETYPE_ROOT_DIR})
23 FIND_PACKAGE(Freetype REQUIRED)
27 SketcherPrs_Coincident.h
28 SketcherPrs_Collinear.h
29 SketcherPrs_DimensionStyleListener.h
31 SketcherPrs_Parallel.h
33 SketcherPrs_Perpendicular.h
34 SketcherPrs_SymbolPrs.h
35 SketcherPrs_PositionMgr.h
37 SketcherPrs_HVDirection.h
40 SketcherPrs_SensitivePoint.h
42 SketcherPrs_LengthDimension.h
45 SketcherPrs_Transformation.h
50 SketcherPrs_Coincident.cpp
51 SketcherPrs_Collinear.cpp
52 SketcherPrs_DimensionStyleListener.cpp
53 SketcherPrs_Factory.cpp
54 SketcherPrs_Parallel.cpp
56 SketcherPrs_Perpendicular.cpp
57 SketcherPrs_SymbolPrs.cpp
58 SketcherPrs_PositionMgr.cpp
60 SketcherPrs_HVDirection.cpp
62 SketcherPrs_Tangent.cpp
63 SketcherPrs_SensitivePoint.cpp
64 SketcherPrs_Radius.cpp
65 SketcherPrs_LengthDimension.cpp
66 SketcherPrs_Middle.cpp
67 SketcherPrs_Mirror.cpp
68 SketcherPrs_Transformation.cpp
79 ${OpenCASCADE_FoundationClasses_LIBRARIES}
80 ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
81 ${OpenCASCADE_Visualization_LIBRARIES}
86 SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} opengl32)
88 SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} GL)
95 icons/perpendicular.png
101 icons/middlepoint.png
107 ADD_DEFINITIONS(-DSKETCHERPRS_EXPORTS ${OpenCASCADE_DEFINITIONS} -D_CRT_SECURE_NO_WARNINGS)
108 ADD_LIBRARY(SketcherPrs SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
111 ${PROJECT_SOURCE_DIR}/src/Config
112 ${PROJECT_SOURCE_DIR}/src/Events
113 ${PROJECT_SOURCE_DIR}/src/ModelAPI
114 ${PROJECT_SOURCE_DIR}/src/ModelGeomAlgo
115 ${PROJECT_SOURCE_DIR}/src/GeomAPI
116 ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
117 ${PROJECT_SOURCE_DIR}/src/SketchPlugin
118 ${OpenCASCADE_INCLUDE_DIR}
119 ${FREETYPE_INCLUDE_DIRS}
122 TARGET_LINK_LIBRARIES(SketcherPrs ${PROJECT_LIBRARIES})
124 INSTALL(TARGETS SketcherPrs DESTINATION ${SHAPER_INSTALL_BIN})
125 INSTALL(FILES ${PROJECT_PICTURES} DESTINATION ${SHAPER_INSTALL_RESOURCES})