]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketcherPrs/CMakeLists.txt
Salome HOME
Fix for the issue #3116 : Create Edge, Wire all-in is missed for feature in Partset
[modules/shaper.git] / src / SketcherPrs / CMakeLists.txt
1 # Copyright (C) 2014-2019  CEA/DEN, EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 IF(NOT DEFINED ENV{FREETYPE_DIR})
21     SET(ENV{FREETYPE_DIR} $ENV{FREETYPE_ROOT_DIR})
22 ENDIF()
23 FIND_PACKAGE(Freetype REQUIRED)
24
25 SET(PROJECT_HEADERS
26     SketcherPrs.h
27     SketcherPrs_Coincident.h
28     SketcherPrs_Collinear.h
29     SketcherPrs_DimensionStyleListener.h
30     SketcherPrs_Factory.h
31     SketcherPrs_Parallel.h
32     SketcherPrs_Tools.h
33     SketcherPrs_Perpendicular.h
34     SketcherPrs_SymbolPrs.h
35     SketcherPrs_PositionMgr.h
36     SketcherPrs_Rigid.h
37     SketcherPrs_HVDirection.h
38     SketcherPrs_Equal.h
39     SketcherPrs_Tangent.h
40     SketcherPrs_SensitivePoint.h
41     SketcherPrs_Radius.h
42     SketcherPrs_LengthDimension.h
43     SketcherPrs_Middle.h
44     SketcherPrs_Mirror.h
45     SketcherPrs_Transformation.h
46     SketcherPrs_Angle.h
47 )
48
49 SET(PROJECT_SOURCES
50     SketcherPrs_Coincident.cpp
51     SketcherPrs_Collinear.cpp
52     SketcherPrs_DimensionStyleListener.cpp
53     SketcherPrs_Factory.cpp
54     SketcherPrs_Parallel.cpp
55     SketcherPrs_Tools.cpp
56     SketcherPrs_Perpendicular.cpp
57     SketcherPrs_SymbolPrs.cpp
58     SketcherPrs_PositionMgr.cpp
59     SketcherPrs_Rigid.cpp
60     SketcherPrs_HVDirection.cpp
61     SketcherPrs_Equal.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
69     SketcherPrs_Angle.cpp
70 )
71
72 SET(PROJECT_LIBRARIES
73     Config
74     ModelAPI
75     ModelGeomAlgo
76     GeomAPI
77     GeomDataAPI
78     Events
79     ${OpenCASCADE_FoundationClasses_LIBRARIES}
80     ${OpenCASCADE_ModelingAlgorithms_LIBRARIES}
81     ${OpenCASCADE_Visualization_LIBRARIES}
82     ${FREETYPE_LIBRARIES}
83 )
84
85 IF(WIN32)
86     SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} opengl32)
87 ELSE()
88     SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} GL)
89 ENDIF()
90
91
92 SET(PROJECT_PICTURES
93     icons/collinear.png
94     icons/parallel.png
95     icons/perpendicular.png
96     icons/anchor.png
97     icons/horisontal.png
98     icons/vertical.png
99     icons/equal.png
100     icons/tangent.png
101     icons/middlepoint.png
102     icons/mirror.png
103     icons/rotate.png
104     icons/translate.png
105 )
106
107 ADD_DEFINITIONS(-DSKETCHERPRS_EXPORTS ${OpenCASCADE_DEFINITIONS} -D_CRT_SECURE_NO_WARNINGS)
108 ADD_LIBRARY(SketcherPrs SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
109
110 INCLUDE_DIRECTORIES(
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}
120 )
121
122 TARGET_LINK_LIBRARIES(SketcherPrs ${PROJECT_LIBRARIES})
123
124 INSTALL(TARGETS SketcherPrs DESTINATION ${SHAPER_INSTALL_BIN})
125 INSTALL(FILES ${PROJECT_PICTURES} DESTINATION ${SHAPER_INSTALL_RESOURCES})