1 cmake_minimum_required (VERSION 2.6)
5 add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
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}/ZClippingDlg.h
25 ${Viewer3d_SRC_DIR}/ZCueingDlg.h
26 ${Viewer3d_SRC_DIR}/State.h
27 ${Viewer3d_RESOURCE_DIR}/resource.h
28 ${Viewer3d_RESOURCE_DIR}/resource.hm)
29 set (Viewer3d_SOURCE_FILES ${Viewer3d_SRC_DIR}/BoxRadius.cpp
30 ${Viewer3d_SRC_DIR}/DlgIsos.cpp
31 ${Viewer3d_SRC_DIR}/ISession_Curve.cpp
32 ${Viewer3d_SRC_DIR}/ModelClippingDlg.cpp
33 ${Viewer3d_SRC_DIR}/OCCDemo_Presentation.cpp
34 ${Viewer3d_SRC_DIR}/OffsetDlg.cpp
35 ${Viewer3d_SRC_DIR}/ScaleDlg.cpp
36 ${Viewer3d_SRC_DIR}/ShadingModelDlg.cpp
37 ${Viewer3d_SRC_DIR}/StdAfx.cpp
38 ${Viewer3d_SRC_DIR}/TexturesExt_Presentation.cpp
39 ${Viewer3d_SRC_DIR}/TrihedronDlg.cpp
40 ${Viewer3d_SRC_DIR}/Viewer3dApp.cpp
41 ${Viewer3d_SRC_DIR}/Viewer3dDoc.cpp
42 ${Viewer3d_SRC_DIR}/Viewer3dView.cpp
43 ${Viewer3d_SRC_DIR}/ZClippingDlg.cpp
44 ${Viewer3d_SRC_DIR}/ZCueingDlg.cpp)
46 set (Viewer3d_RESOURCE_FILES ${Viewer3d_RESOURCE_DIR}/Viewer3d.rc
47 ${Viewer3d_RESOURCE_DIR}/AISToolbar.bmp
48 ${Viewer3d_RESOURCE_DIR}/AIS_TB.bmp
49 ${Viewer3d_RESOURCE_DIR}/Toolbar.bmp)
51 # groups in the VS solution
52 source_group ("Source Files" FILES ${Viewer3d_SOURCE_FILES}
53 ${COMMON_WINMAIN_FILE})
55 source_group ("Header Files" FILES ${Viewer3d_HEADER_FILES})
57 source_group ("Resource Files" FILES ${Viewer3d_RESOURCE_FILES})
59 add_executable (Viewer3d WIN32 ${Viewer3d_SOURCE_FILES}
60 ${Viewer3d_HEADER_FILES}
61 ${COMMON_WINMAIN_FILE}
62 ${Viewer3d_RESOURCE_FILES})
64 set_property (TARGET Viewer3d PROPERTY FOLDER Samples)
67 install (TARGETS Viewer3d DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
69 install (TARGETS Viewer3d
70 CONFIGURATIONS Release RelWithDebInfo
71 DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}")
72 install (TARGETS Viewer3d
74 DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}d")
77 include_directories (${CMAKE_BINARY_DIR}/inc
79 ${MFC_STANDARD_SAMPLES_DIR}/Common)
81 target_link_libraries (Viewer3d mfcsample)