0024623: Visualization - improve selection mechanism
[occt.git] / samples / mfc / standard / 01_Geometry / CMakeLists.txt
CommitLineData
234e52be 1cmake_minimum_required (VERSION 2.6)
2
3project (Geometry)
4
576f8b11 5add_definitions(-DWINVER=0x0501 -DUNICODE -D_UNICODE)
6set (CMAKE_MFC_FLAG 2)
234e52be 7
8set (Geometry_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/01_Geometry/src)
9set (Geometry_HEADER_FILES ${Geometry_SRC_DIR}/ChildFrm.h
10 ${Geometry_SRC_DIR}/ChildFrm2d.h
11 ${Geometry_SRC_DIR}/GeoAlgo_Sol.hxx
12 ${Geometry_SRC_DIR}/GeometryApp.h
13 ${Geometry_SRC_DIR}/GeometryDoc.h
14 ${Geometry_SRC_DIR}/GeometryView.h
15 ${Geometry_SRC_DIR}/GeometryView2D.h
16 ${Geometry_SRC_DIR}/GeomSources.h
17 ${Geometry_SRC_DIR}/MainFrm.h
18 ${Geometry_SRC_DIR}/StdAfx.h )
19set (Geometry_SOURCE_FILES ${Geometry_SRC_DIR}/ChildFrm.cpp
20 ${Geometry_SRC_DIR}/ChildFrm2d.cpp
21 ${Geometry_SRC_DIR}/GeoAlgo_Sol.cxx
22 ${Geometry_SRC_DIR}/GeometryApp.cpp
23 ${Geometry_SRC_DIR}/GeometryDoc.cpp
24 ${Geometry_SRC_DIR}/GeometryView.cpp
25 ${Geometry_SRC_DIR}/GeometryView2D.cpp
26 ${Geometry_SRC_DIR}/GeomSources.cpp
27 ${Geometry_SRC_DIR}/MainFrm.cpp
28 ${Geometry_SRC_DIR}/StdAfx.cpp )
29
30set (Geometry_ISESSION2D_DIR ${Geometry_SRC_DIR}/ISession2D)
31set (Geometry_ISESSION2D_HEADER_FILES ${Geometry_ISESSION2D_DIR}/ISession_Curve.h
32 ${Geometry_ISESSION2D_DIR}/ISession_Direction.h
33 ${Geometry_ISESSION2D_DIR}/ISession_Point.h
34 ${Geometry_ISESSION2D_DIR}/ISession_Surface.h
35 ${Geometry_ISESSION2D_DIR}/ISession_Text.h
f751596e 36 ${Geometry_ISESSION2D_DIR}/ISession2D_Curve.h)
234e52be 37set (Geometry_ISESSION2D_SOURCE_FILES ${Geometry_ISESSION2D_DIR}/ISession_Curve.cpp
38 ${Geometry_ISESSION2D_DIR}/ISession_Direction.cpp
39 ${Geometry_ISESSION2D_DIR}/ISession_Point.cpp
40 ${Geometry_ISESSION2D_DIR}/ISession_Surface.cpp
41 ${Geometry_ISESSION2D_DIR}/ISession_Text.cpp
f751596e 42 ${Geometry_ISESSION2D_DIR}/ISession2D_Curve.cpp)
234e52be 43
44set (Geometry_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/01_Geometry/res)
45set (Geometry_RESOURCE_HEADER ${Geometry_RESOURCE_DIR}/resource.h)
46set (Geometry_RESOURCE_FILES ${Geometry_RESOURCE_DIR}/Geometry.rc
47 ${Geometry_RESOURCE_DIR}/Toolbar1.bmp
48 ${Geometry_RESOURCE_DIR}/Toolbar2.bmp)
49
50# groups in the VS solution
51source_group ("Source Files" FILES ${Geometry_SOURCE_FILES}
52 ${COMMON_WINMAIN_FILE})
53
54source_group ("Source Files\\ISession2d" FILES ${Geometry_ISESSION2D_SOURCE_FILES})
55
56source_group ("Header Files" FILES ${Geometry_HEADER_FILES}
57 ${Geometry_ISESSION2D_HEADER_FILES}
58 ${Geometry_RESOURCE_HEADER})
59
60source_group ("Resource Files" FILES ${Geometry_RESOURCE_FILES})
61
62add_executable (Geometry WIN32 ${Geometry_SOURCE_FILES}
63 ${Geometry_HEADER_FILES}
64 ${COMMON_WINMAIN_FILE}
65 ${Geometry_ISESSION2D_SOURCE_FILES}
66 ${Geometry_ISESSION2D_HEADER_FILES}
67 ${Geometry_RESOURCE_FILES}
68 ${Geometry_RESOURCE_HEADER})
69
70set_property(TARGET Geometry PROPERTY FOLDER Samples)
71
9f33b387 72install (TARGETS Geometry RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
73 ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
74 LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
234e52be 75
76include_directories (${OCCT_ROOT}/inc
234e52be 77 ${Geometry_SRC_DIR}
78 ${Geometry_ISESSION2D_DIR}
4a0c5c25 79 ${Geometry_RESOURCE_DIR}
80 ${MFC_STANDARD_SAMPLES_DIR}/Common)
234e52be 81
82target_link_libraries (Geometry mfcsample)