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