0027750: Visualization, V3d_View - remove unused functionality ZClipping and ZCueing
[occt.git] / samples / mfc / standard / 04_Viewer3d / CMakeLists.txt
1 cmake_minimum_required (VERSION 2.6)
2
3 project (Viewer3d)
4
5 add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
6 set (CMAKE_MFC_FLAG 2)
7
8 set (Viewer3d_SRC_DIR      ${MFC_STANDARD_SAMPLES_DIR}/04_Viewer3d/src)
9 set (Viewer3d_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/04_Viewer3d/res)
10 set (Viewer3d_HEADER_FILES ${Viewer3d_SRC_DIR}/BoxRadius.h
11                            ${Viewer3d_SRC_DIR}/DlgIsos.h
12                            ${Viewer3d_SRC_DIR}/ISession_Curve.h
13                            ${Viewer3d_SRC_DIR}/ModelClippingDlg.h
14                            ${Viewer3d_SRC_DIR}/OCCDemo_Presentation.h
15                            ${Viewer3d_SRC_DIR}/OffsetDlg.h
16                            ${Viewer3d_SRC_DIR}/ScaleDlg.h
17                            ${Viewer3d_SRC_DIR}/ShadingModelDlg.h
18                            ${Viewer3d_SRC_DIR}/StdAfx.h
19                            ${Viewer3d_SRC_DIR}/TexturesExt_Presentation.h
20                            ${Viewer3d_SRC_DIR}/TrihedronDlg.h
21                            ${Viewer3d_SRC_DIR}/Viewer3dApp.h
22                            ${Viewer3d_SRC_DIR}/Viewer3dDoc.h
23                            ${Viewer3d_SRC_DIR}/Viewer3dView.h
24                            ${Viewer3d_SRC_DIR}/State.h
25                            ${Viewer3d_RESOURCE_DIR}/resource.h
26                            ${Viewer3d_RESOURCE_DIR}/resource.hm)
27 set (Viewer3d_SOURCE_FILES ${Viewer3d_SRC_DIR}/BoxRadius.cpp
28                            ${Viewer3d_SRC_DIR}/DlgIsos.cpp
29                            ${Viewer3d_SRC_DIR}/ISession_Curve.cpp
30                            ${Viewer3d_SRC_DIR}/ModelClippingDlg.cpp
31                            ${Viewer3d_SRC_DIR}/OCCDemo_Presentation.cpp
32                            ${Viewer3d_SRC_DIR}/OffsetDlg.cpp
33                            ${Viewer3d_SRC_DIR}/ScaleDlg.cpp
34                            ${Viewer3d_SRC_DIR}/ShadingModelDlg.cpp
35                            ${Viewer3d_SRC_DIR}/StdAfx.cpp
36                            ${Viewer3d_SRC_DIR}/TexturesExt_Presentation.cpp
37                            ${Viewer3d_SRC_DIR}/TrihedronDlg.cpp
38                            ${Viewer3d_SRC_DIR}/Viewer3dApp.cpp
39                            ${Viewer3d_SRC_DIR}/Viewer3dDoc.cpp
40                            ${Viewer3d_SRC_DIR}/Viewer3dView.cpp)
41
42 set (Viewer3d_RESOURCE_FILES ${Viewer3d_RESOURCE_DIR}/Viewer3d.rc
43                              ${Viewer3d_RESOURCE_DIR}/AISToolbar.bmp
44                              ${Viewer3d_RESOURCE_DIR}/AIS_TB.bmp
45                              ${Viewer3d_RESOURCE_DIR}/Toolbar.bmp)
46
47 # groups in the VS solution
48 source_group ("Source Files" FILES ${Viewer3d_SOURCE_FILES}
49                                    ${COMMON_WINMAIN_FILE})
50
51 source_group ("Header Files" FILES ${Viewer3d_HEADER_FILES})
52
53 source_group ("Resource Files" FILES ${Viewer3d_RESOURCE_FILES})
54
55 add_executable (Viewer3d WIN32 ${Viewer3d_SOURCE_FILES}
56                                ${Viewer3d_HEADER_FILES}
57                                ${COMMON_WINMAIN_FILE}
58                                ${Viewer3d_RESOURCE_FILES})
59
60 set_property (TARGET Viewer3d PROPERTY FOLDER Samples)
61
62 if (SINGLE_GENERATOR)
63   install (TARGETS Viewer3d DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
64 else()
65   install (TARGETS Viewer3d
66            CONFIGURATIONS Release RelWithDebInfo
67            DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
68   install (TARGETS Viewer3d
69            CONFIGURATIONS Debug
70            DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}d")
71 endif()
72
73 include_directories (${CMAKE_BINARY_DIR}/inc
74                      ${Viewer3d_SRC_DIR}
75                      ${MFC_STANDARD_SAMPLES_DIR}/Common)
76
77 target_link_libraries (Viewer3d mfcsample)