~ubuntu-branches/ubuntu/maverick/freecad/maverick

« back to all changes in this revision

Viewing changes to src/Mod/Mesh/Gui/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Teemu Ikonen
  • Date: 2009-07-16 18:37:41 UTC
  • Revision ID: james.westby@ubuntu.com-20090716183741-oww9kcxqrk991i1n
Tags: upstream-0.8.2237
ImportĀ upstreamĀ versionĀ 0.8.2237

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include_directories(
 
2
                 ${CMAKE_SOURCE_DIR}/src
 
3
                 ${CMAKE_BINARY_DIR}/src
 
4
                 ${CMAKE_CURRENT_BINARY_DIR}
 
5
                 ${Boost_INCLUDE_DIRS}
 
6
                 ${COIN_INCLUDE_DIR}
 
7
                 ${PYTHON_INCLUDE_PATH}
 
8
                 ${ZLIB_INCLUDE_DIR}
 
9
                 ${SOQT_INCLUDE_DIR}
 
10
                 ${QT_INCLUDE_DIR}
 
11
                 ${XERCES_INCLUDE_DIR})
 
12
 
 
13
set(MeshGui_LIBS
 
14
                 ${Boost_LIBRARIES}
 
15
                 Mesh
 
16
                 FreeCADGui)
 
17
 
 
18
set(Mesh_MOC_HDRS
 
19
                 DlgEvaluateMeshImp.h
 
20
                 DlgRegularSolidImp.h
 
21
                 DlgSettingsMeshView.h
 
22
                 PropertyEditorMesh.h
 
23
)
 
24
fc_wrap_cpp(Mesh_MOC_SRCS ${Mesh_MOC_HDRS})
 
25
SOURCE_GROUP("Moc" FILES ${Mesh_MOC_SRCS})
 
26
 
 
27
set(Dialogs_UIC_SRCS
 
28
                 DlgEvaluateMesh.ui
 
29
                 DlgRegularSolid.ui
 
30
                 DlgSettingsMeshView.ui
 
31
)
 
32
qt4_wrap_ui(Dialogs_UIC_HDRS ${Dialogs_UIC_SRCS})
 
33
SET(Dialogs_SRCS
 
34
                 ${Dialogs_UIC_HDRS}
 
35
                 DlgEvaluateMesh.ui
 
36
                 DlgEvaluateMeshImp.cpp
 
37
                 DlgEvaluateMeshImp.h
 
38
                 DlgRegularSolid.ui
 
39
                 DlgRegularSolidImp.cpp
 
40
                 DlgRegularSolidImp.h
 
41
                 DlgSettingsMeshView.ui
 
42
                 DlgSettingsMeshView.cpp
 
43
                 DlgSettingsMeshView.h
 
44
)
 
45
SOURCE_GROUP("Dialogs" FILES ${Dialogs_SRCS})
 
46
 
 
47
SET(Inventor_SRCS
 
48
                 SoFCIndexedFaceSet.cpp
 
49
                 SoFCIndexedFaceSet.h
 
50
                 SoFCMeshObject.cpp
 
51
                 SoFCMeshObject.h
 
52
)
 
53
SOURCE_GROUP("Inventor" FILES ${Inventor_SRCS})
 
54
 
 
55
fc_add_resources(resource_SRCS Mesh.qrc)
 
56
SET(resource_SRCS
 
57
#                ${resource_SRCS}
 
58
                 Mesh.qrc
 
59
)
 
60
SOURCE_GROUP("resource" FILES ${resource_SRCS})
 
61
 
 
62
SET(ViewProvider_SRCS
 
63
                 ViewProvider.cpp
 
64
                 ViewProvider.h
 
65
                 ViewProviderCurvature.cpp
 
66
                 ViewProviderCurvature.h
 
67
                 ViewProviderDefects.cpp
 
68
                 ViewProviderDefects.h
 
69
                 ViewProviderMeshFaceSet.cpp
 
70
                 ViewProviderMeshFaceSet.h
 
71
                 ViewProviderTransform.cpp
 
72
                 ViewProviderTransform.h
 
73
                 ViewProviderTransformDemolding.cpp
 
74
                 ViewProviderTransformDemolding.h
 
75
)
 
76
SOURCE_GROUP("ViewProvider" FILES ${ViewProvider_SRCS})
 
77
 
 
78
SET(MeshGui_SRCS
 
79
                 ${Dialogs_SRCS}
 
80
                 ${Inventor_SRCS}
 
81
                 ${resource_SRCS}
 
82
                 ${ViewProvider_SRCS}
 
83
                 AppMeshGui.cpp
 
84
                 Command.cpp
 
85
                 Doxygen.cpp
 
86
                 PreCompiled.cpp
 
87
                 PreCompiled.h
 
88
                 PropertyEditorMesh.cpp
 
89
                 PropertyEditorMesh.h
 
90
                 Workbench.cpp
 
91
                 Workbench.h
 
92
)
 
93
 
 
94
add_library(MeshGui SHARED ${MeshGui_SRCS})
 
95
 
 
96
target_link_libraries(MeshGui ${MeshGui_LIBS})
 
97
 
 
98
if(WIN32)
 
99
                set_target_properties(MeshGui PROPERTIES SUFFIX ".pyd")
 
100
                set_target_properties(MeshGui PROPERTIES DEBUG_OUTPUT_NAME "MeshGui_d")
 
101
else(WIN32)
 
102
                set_target_properties(MeshGui PROPERTIES PREFIX "")
 
103
endif(WIN32)
 
104
 
 
105
install(TARGETS MeshGui DESTINATION lib)