0024469: cmake mfcsample project skippes ParamsFacesPage
[occt.git] / samples / mfc / standard / 06_Ocaf / CMakeLists.txt
CommitLineData
234e52be 1cmake_minimum_required (VERSION 2.6)
2
3project (Ocaf)
4
5add_definitions (-DWINVER=0x0500)
6
7set (Ocaf_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf/src)
8set (Ocaf_HEADER_FILES ${Ocaf_SRC_DIR}/NewBoxDlg.h
9 ${Ocaf_SRC_DIR}/NewCylDlg.h
10 ${Ocaf_SRC_DIR}/OcafApp.h
11 ${Ocaf_SRC_DIR}/OcafDoc.h
12 ${Ocaf_SRC_DIR}/OcafMainFrm.h
13 ${Ocaf_SRC_DIR}/Handle_TOcaf_Application.hxx
14 ${Ocaf_SRC_DIR}/TOcaf_Commands.hxx
15 ${Ocaf_SRC_DIR}/Handle_TOcafFunction_BoxDriver.hxx
16 ${Ocaf_SRC_DIR}/Handle_TOcafFunction_CutDriver.hxx
17 ${Ocaf_SRC_DIR}/Handle_TOcafFunction_CylDriver.hxx
18 ${Ocaf_SRC_DIR}/StdAfx.h )
19set (Ocaf_SOURCE_FILES ${Ocaf_SRC_DIR}/NewBoxDlg.cpp
20 ${Ocaf_SRC_DIR}/NewCylDlg.cpp
21 ${Ocaf_SRC_DIR}/OcafApp.cpp
22 ${Ocaf_SRC_DIR}/OcafDoc.cpp
23 ${Ocaf_SRC_DIR}/OcafMainFrm.cpp
24 ${Ocaf_SRC_DIR}/TOcaf_Application.cxx
25 ${Ocaf_SRC_DIR}/TOcaf_Commands.cxx
26 ${Ocaf_SRC_DIR}/TOcafFunction_BoxDriver.cxx
27 ${Ocaf_SRC_DIR}/TOcafFunction_CutDriver.cxx
28 ${Ocaf_SRC_DIR}/TOcafFunction_CylDriver.cxx
29 ${Ocaf_SRC_DIR}/StdAfx.cpp )
30
31set (Ocaf_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf/res)
32set (Ocaf_RESOURCE_HEADER ${Ocaf_RESOURCE_DIR}/resource.h)
33set (Ocaf_RESOURCE_FILES ${Ocaf_RESOURCE_DIR}/ActionsTB.bmp
34 ${Ocaf_RESOURCE_DIR}/AIS_TB.bmp
35 ${Ocaf_RESOURCE_DIR}/Toolbar.bmp
36 ${Ocaf_RESOURCE_DIR}/UndoRedoTB.bmp
37 ${Ocaf_RESOURCE_DIR}/Ocaf.rc)
38
39# groups in the VS solution
40source_group ("Source Files" FILES ${Ocaf_SOURCE_FILES}
41 ${COMMON_WINMAIN_FILE})
42
43source_group ("Header Files" FILES ${Ocaf_HEADER_FILES}
44 ${Ocaf_RESOURCE_HEADER})
45
46source_group ("Resource Files" FILES ${Ocaf_RESOURCE_FILES})
47
48add_executable (Ocaf WIN32 ${Ocaf_SOURCE_FILES}
49 ${Ocaf_HEADER_FILES}
50 ${COMMON_WINMAIN_FILE}
51 ${Ocaf_RESOURCE_HEADER}
52 ${Ocaf_RESOURCE_FILES} )
53
54
55set_property (TARGET Ocaf PROPERTY FOLDER Samples)
56
57install (TARGETS Ocaf RUNTIME DESTINATION "${INSTALL_DIR}/bin"
58 ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
59 LIBRARY DESTINATION "${INSTALL_DIR}/lib")
60
61include_directories (${OCCT_ROOT}/inc
234e52be 62 ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf
4a0c5c25 63 ${Ocaf_SRC_DIR}
64 ${MFC_STANDARD_SAMPLES_DIR}/Common)
234e52be 65
66target_link_libraries (Ocaf mfcsample TKLCAF TKBO)