0024469: cmake mfcsample project skippes ParamsFacesPage
[occt.git] / samples / mfc / standard / 06_Ocaf / CMakeLists.txt
1 cmake_minimum_required (VERSION 2.6)
2
3 project (Ocaf)
4
5 add_definitions (-DWINVER=0x0500)
6
7 set (Ocaf_SRC_DIR      ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf/src)
8 set (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 )
19 set (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
31 set (Ocaf_RESOURCE_DIR    ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf/res)
32 set (Ocaf_RESOURCE_HEADER ${Ocaf_RESOURCE_DIR}/resource.h)
33 set (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
40 source_group ("Source Files" FILES ${Ocaf_SOURCE_FILES}
41                                    ${COMMON_WINMAIN_FILE})
42
43 source_group ("Header Files" FILES ${Ocaf_HEADER_FILES}
44                                    ${Ocaf_RESOURCE_HEADER})
45
46 source_group ("Resource Files" FILES ${Ocaf_RESOURCE_FILES})
47
48 add_executable (Ocaf WIN32 ${Ocaf_SOURCE_FILES}
49                            ${Ocaf_HEADER_FILES}
50                            ${COMMON_WINMAIN_FILE}
51                            ${Ocaf_RESOURCE_HEADER}
52                            ${Ocaf_RESOURCE_FILES} )
53
54
55 set_property (TARGET Ocaf PROPERTY FOLDER Samples)
56
57 install (TARGETS Ocaf RUNTIME DESTINATION "${INSTALL_DIR}/bin"
58                       ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
59                       LIBRARY DESTINATION "${INSTALL_DIR}/lib")
60
61 include_directories (${OCCT_ROOT}/inc
62                      ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf
63                      ${Ocaf_SRC_DIR}
64                      ${MFC_STANDARD_SAMPLES_DIR}/Common)
65
66 target_link_libraries (Ocaf mfcsample TKLCAF TKBO)