0031875: Draw Harness, ViewerTest - command vaspects -mostContinuity lacks g1 and...
[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
f751596e 35 ${Geometry_ISESSION2D_DIR}/ISession2D_Curve.h)
234e52be 36set (Geometry_ISESSION2D_SOURCE_FILES ${Geometry_ISESSION2D_DIR}/ISession_Curve.cpp
37 ${Geometry_ISESSION2D_DIR}/ISession_Direction.cpp
38 ${Geometry_ISESSION2D_DIR}/ISession_Point.cpp
39 ${Geometry_ISESSION2D_DIR}/ISession_Surface.cpp
f751596e 40 ${Geometry_ISESSION2D_DIR}/ISession2D_Curve.cpp)
234e52be 41
42set (Geometry_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/01_Geometry/res)
43set (Geometry_RESOURCE_HEADER ${Geometry_RESOURCE_DIR}/resource.h)
44set (Geometry_RESOURCE_FILES ${Geometry_RESOURCE_DIR}/Geometry.rc
45 ${Geometry_RESOURCE_DIR}/Toolbar1.bmp
46 ${Geometry_RESOURCE_DIR}/Toolbar2.bmp)
47
48# groups in the VS solution
49source_group ("Source Files" FILES ${Geometry_SOURCE_FILES}
50 ${COMMON_WINMAIN_FILE})
51
52source_group ("Source Files\\ISession2d" FILES ${Geometry_ISESSION2D_SOURCE_FILES})
53
54source_group ("Header Files" FILES ${Geometry_HEADER_FILES}
55 ${Geometry_ISESSION2D_HEADER_FILES}
56 ${Geometry_RESOURCE_HEADER})
57
58source_group ("Resource Files" FILES ${Geometry_RESOURCE_FILES})
59
60add_executable (Geometry WIN32 ${Geometry_SOURCE_FILES}
61 ${Geometry_HEADER_FILES}
62 ${COMMON_WINMAIN_FILE}
63 ${Geometry_ISESSION2D_SOURCE_FILES}
64 ${Geometry_ISESSION2D_HEADER_FILES}
65 ${Geometry_RESOURCE_FILES}
66 ${Geometry_RESOURCE_HEADER})
67
510d9690 68set_property(TARGET Geometry PROPERTY FOLDER "Samples/mfc")
234e52be 69
4b3541c6 70if (SINGLE_GENERATOR)
d26375e2 71 install (TARGETS Geometry DESTINATION "${INSTALL_DIR_BIN}")
4b3541c6 72else()
73 install (TARGETS Geometry
74 CONFIGURATIONS Release RelWithDebInfo
d26375e2 75 DESTINATION "${INSTALL_DIR_BIN}")
4b3541c6 76 install (TARGETS Geometry
77 CONFIGURATIONS Debug
d26375e2 78 DESTINATION "${INSTALL_DIR_BIN}d")
4b3541c6 79endif()
234e52be 80
9e3ca93a 81include_directories (${CMAKE_BINARY_DIR}/inc
234e52be 82 ${Geometry_SRC_DIR}
83 ${Geometry_ISESSION2D_DIR}
4a0c5c25 84 ${Geometry_RESOURCE_DIR}
85 ${MFC_STANDARD_SAMPLES_DIR}/Common)
234e52be 86
87target_link_libraries (Geometry mfcsample)