0024469: cmake mfcsample project skippes ParamsFacesPage
[occt.git] / samples / mfc / standard / 07_Triangulation / CMakeLists.txt
CommitLineData
234e52be 1cmake_minimum_required (VERSION 2.6)
2
3project (Triangulation)
4
5add_definitions (-DWINVER=0x0500)
6
7set (Triangulation_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation/src)
8set (Triangulation_HEADER_FILES ${Triangulation_SRC_DIR}/ISession_Curve.h
9 ${Triangulation_SRC_DIR}/OCCDemo_Presentation.h
10 ${Triangulation_SRC_DIR}/Tesselate_Presentation.h
11 ${Triangulation_SRC_DIR}/TriangulationApp.h
12 ${Triangulation_SRC_DIR}/TriangulationDoc.h
13 ${Triangulation_SRC_DIR}/StdAfx.h )
14set (Triangulation_SOURCE_FILES ${Triangulation_SRC_DIR}/ISession_Curve.cpp
15 ${Triangulation_SRC_DIR}/OCCDemo_Presentation.cpp
16 ${Triangulation_SRC_DIR}/Tesselate_Presentation.cpp
17 ${Triangulation_SRC_DIR}/TriangulationApp.cpp
18 ${Triangulation_SRC_DIR}/TriangulationDoc.cpp
19 ${Triangulation_SRC_DIR}/StdAfx.cpp)
20
21set (Triangulation_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation/res)
22set (Triangulation_RESOURCE_HEADER ${Triangulation_RESOURCE_DIR}/resource.h)
23set (Triangulation_RESOURCE_FILES ${Triangulation_RESOURCE_DIR}/Toolbar.bmp
24 ${Triangulation_RESOURCE_DIR}/Triangulation.rc)
25
26# groups in the VS solution
27source_group ("Source Files" FILES ${Triangulation_SOURCE_FILES}
28 ${COMMON_WINMAIN_FILE})
29
30source_group ("Header Files" FILES ${Triangulation_HEADER_FILES}
31 ${Triangulation_RESOURCE_HEADER})
32
33source_group ("Resource Files" FILES ${Triangulation_RESOURCE_FILES})
34
35add_executable (Triangulation WIN32 ${Triangulation_SOURCE_FILES}
36 ${Triangulation_HEADER_FILES}
37 ${COMMON_WINMAIN_FILE}
38 ${Triangulation_RESOURCE_HEADER}
39 ${Triangulation_RESOURCE_FILES})
40
41set_property (TARGET Triangulation PROPERTY FOLDER Samples)
42
43install (TARGETS Triangulation RUNTIME DESTINATION "${INSTALL_DIR}/bin"
44 ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
45 LIBRARY DESTINATION "${INSTALL_DIR}/lib")
46
47include_directories (${OCCT_ROOT}/inc
234e52be 48 ${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation
4a0c5c25 49 ${Triangulation_SRC_DIR}
50 ${MFC_STANDARD_SAMPLES_DIR}/Common)
234e52be 51
52target_link_libraries (Triangulation mfcsample TKSTEP209 TKSTEPAttr TKBO)