]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketcherPrs/CMakeLists.txt
Salome HOME
Remove extra files
[modules/shaper.git] / src / SketcherPrs / CMakeLists.txt
1 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 IF(NOT DEFINED ENV{FREETYPE_DIR})
4     SET(ENV{FREETYPE_DIR} $ENV{FREETYPE_ROOT_DIR})
5 ENDIF()
6 FIND_PACKAGE(Freetype REQUIRED)
7
8 SET(PROJECT_HEADERS
9     SketcherPrs.h
10     SketcherPrs_Coincident.h
11     SketcherPrs_Collinear.h
12     SketcherPrs_DimensionStyleListener.h
13     SketcherPrs_Factory.h
14     SketcherPrs_Parallel.h
15     SketcherPrs_Tools.h
16     SketcherPrs_Perpendicular.h
17     SketcherPrs_SymbolPrs.h
18     SketcherPrs_PositionMgr.h
19     SketcherPrs_Rigid.h
20     SketcherPrs_HVDirection.h
21     SketcherPrs_Equal.h
22     SketcherPrs_Tangent.h
23     SketcherPrs_SensitivePoint.h
24     SketcherPrs_Radius.h
25     SketcherPrs_LengthDimension.h
26     SketcherPrs_Middle.h
27     SketcherPrs_Mirror.h
28     SketcherPrs_Transformation.h
29     SketcherPrs_Angle.h
30 )
31
32 SET(PROJECT_SOURCES
33     SketcherPrs_Coincident.cpp
34     SketcherPrs_Collinear.cpp
35     SketcherPrs_DimensionStyleListener.cpp
36     SketcherPrs_Factory.cpp
37     SketcherPrs_Parallel.cpp
38     SketcherPrs_Tools.cpp
39     SketcherPrs_Perpendicular.cpp
40     SketcherPrs_SymbolPrs.cpp
41     SketcherPrs_PositionMgr.cpp
42     SketcherPrs_Rigid.cpp
43     SketcherPrs_HVDirection.cpp
44     SketcherPrs_Equal.cpp
45     SketcherPrs_Tangent.cpp
46     SketcherPrs_SensitivePoint.cpp
47     SketcherPrs_Radius.cpp
48     SketcherPrs_LengthDimension.cpp
49     SketcherPrs_Middle.cpp
50     SketcherPrs_Mirror.cpp
51     SketcherPrs_Transformation.cpp
52     SketcherPrs_Angle.cpp
53 )
54
55 SET(PROJECT_LIBRARIES
56     Config
57     ModelAPI
58     ModelGeomAlgo
59     GeomAPI
60     GeomDataAPI
61     Events
62     ${CAS_KERNEL}
63     ${CAS_MODELER}
64     ${CAS_VIEWER}
65     ${CAS_SHAPE}
66     ${CAS_TKTopAlgo}
67     ${CAS_TKOpenGl}
68     ${FREETYPE_LIBRARIES}
69 )
70
71 IF(WIN32)
72     SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} opengl32)
73 ELSE()
74     SET(PROJECT_LIBRARIES ${PROJECT_LIBRARIES} GL)
75 ENDIF()
76
77
78 SET(PROJECT_PICTURES
79     icons/collinear.png
80     icons/parallel.png
81     icons/perpendicular.png
82     icons/anchor.png
83     icons/horisontal.png
84     icons/vertical.png
85     icons/equal.png
86     icons/tangent.png
87     icons/middlepoint.png
88     icons/mirror.png
89     icons/rotate.png
90     icons/translate.png
91 )
92
93 ADD_DEFINITIONS(-DSKETCHERPRS_EXPORTS ${CAS_DEFINITIONS} -D_CRT_SECURE_NO_WARNINGS)
94 ADD_LIBRARY(SketcherPrs SHARED ${PROJECT_SOURCES} ${PROJECT_HEADERS})
95
96 INCLUDE_DIRECTORIES(
97   ${PROJECT_SOURCE_DIR}/src/Config
98   ${PROJECT_SOURCE_DIR}/src/Events
99   ${PROJECT_SOURCE_DIR}/src/ModelAPI
100   ${PROJECT_SOURCE_DIR}/src/ModelGeomAlgo
101   ${PROJECT_SOURCE_DIR}/src/GeomAPI
102   ${PROJECT_SOURCE_DIR}/src/GeomDataAPI
103   ${PROJECT_SOURCE_DIR}/src/SketchPlugin
104   ${CAS_INCLUDE_DIRS}
105   ${FREETYPE_INCLUDE_DIRS}
106 )
107
108 TARGET_LINK_LIBRARIES(SketcherPrs ${PROJECT_LIBRARIES})
109
110 INSTALL(TARGETS SketcherPrs DESTINATION ${SHAPER_INSTALL_BIN})
111 INSTALL(FILES ${PROJECT_PICTURES} DESTINATION ${SHAPER_INSTALL_RESOURCES})