0028892: BOPAlgo_PaveFiller returns status "error: 11" in draw or raises exception...
[occt.git] / samples / mfc / standard / 06_Ocaf / CMakeLists.txt
CommitLineData
234e52be 1cmake_minimum_required (VERSION 2.6)
2
3project (Ocaf)
4
576f8b11 5add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
6set (CMAKE_MFC_FLAG 2)
234e52be 7
8set (Ocaf_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf/src)
9set (Ocaf_HEADER_FILES ${Ocaf_SRC_DIR}/NewBoxDlg.h
10 ${Ocaf_SRC_DIR}/NewCylDlg.h
11 ${Ocaf_SRC_DIR}/OcafApp.h
12 ${Ocaf_SRC_DIR}/OcafDoc.h
13 ${Ocaf_SRC_DIR}/OcafMainFrm.h
234e52be 14 ${Ocaf_SRC_DIR}/TOcaf_Commands.hxx
234e52be 15 ${Ocaf_SRC_DIR}/StdAfx.h )
16set (Ocaf_SOURCE_FILES ${Ocaf_SRC_DIR}/NewBoxDlg.cpp
17 ${Ocaf_SRC_DIR}/NewCylDlg.cpp
18 ${Ocaf_SRC_DIR}/OcafApp.cpp
19 ${Ocaf_SRC_DIR}/OcafDoc.cpp
20 ${Ocaf_SRC_DIR}/OcafMainFrm.cpp
21 ${Ocaf_SRC_DIR}/TOcaf_Application.cxx
22 ${Ocaf_SRC_DIR}/TOcaf_Commands.cxx
23 ${Ocaf_SRC_DIR}/TOcafFunction_BoxDriver.cxx
24 ${Ocaf_SRC_DIR}/TOcafFunction_CutDriver.cxx
25 ${Ocaf_SRC_DIR}/TOcafFunction_CylDriver.cxx
26 ${Ocaf_SRC_DIR}/StdAfx.cpp )
27
28set (Ocaf_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf/res)
29set (Ocaf_RESOURCE_HEADER ${Ocaf_RESOURCE_DIR}/resource.h)
30set (Ocaf_RESOURCE_FILES ${Ocaf_RESOURCE_DIR}/ActionsTB.bmp
31 ${Ocaf_RESOURCE_DIR}/AIS_TB.bmp
32 ${Ocaf_RESOURCE_DIR}/Toolbar.bmp
33 ${Ocaf_RESOURCE_DIR}/UndoRedoTB.bmp
34 ${Ocaf_RESOURCE_DIR}/Ocaf.rc)
35
36# groups in the VS solution
37source_group ("Source Files" FILES ${Ocaf_SOURCE_FILES}
38 ${COMMON_WINMAIN_FILE})
39
40source_group ("Header Files" FILES ${Ocaf_HEADER_FILES}
41 ${Ocaf_RESOURCE_HEADER})
42
43source_group ("Resource Files" FILES ${Ocaf_RESOURCE_FILES})
44
45add_executable (Ocaf WIN32 ${Ocaf_SOURCE_FILES}
46 ${Ocaf_HEADER_FILES}
47 ${COMMON_WINMAIN_FILE}
48 ${Ocaf_RESOURCE_HEADER}
49 ${Ocaf_RESOURCE_FILES} )
50
51
52set_property (TARGET Ocaf PROPERTY FOLDER Samples)
53
4b3541c6 54if (SINGLE_GENERATOR)
d26375e2 55 install (TARGETS Ocaf DESTINATION "${INSTALL_DIR_BIN}")
4b3541c6 56else()
57 install (TARGETS Ocaf
58 CONFIGURATIONS Release RelWithDebInfo
d26375e2 59 DESTINATION "${INSTALL_DIR_BIN}")
4b3541c6 60 install (TARGETS Ocaf
61 CONFIGURATIONS Debug
d26375e2 62 DESTINATION "${INSTALL_DIR_BIN}d")
4b3541c6 63endif()
234e52be 64
9e3ca93a 65include_directories (${CMAKE_BINARY_DIR}/inc
234e52be 66 ${MFC_STANDARD_SAMPLES_DIR}/06_Ocaf
4a0c5c25 67 ${Ocaf_SRC_DIR}
68 ${MFC_STANDARD_SAMPLES_DIR}/Common)
234e52be 69
2915f0b5 70target_link_libraries (Ocaf mfcsample TKLCAF TKVCAF TKBO TKBin TKXml)