0024002: Overall code and build procedure refactoring - samples
[occt.git] / samples / mfc / standard / 02_Modeling / CMakeLists.txt
CommitLineData
234e52be 1cmake_minimum_required (VERSION 2.6)
2
3project (Modeling)
4
576f8b11 5add_definitions(-DWINVER=0x0501 -DUNICODE -D_UNICODE)
6set (CMAKE_MFC_FLAG 2)
234e52be 7
8set (Modeling_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/02_Modeling/src)
9set (Modeling_HEADER_FILES ${Modeling_SRC_DIR}/ISession_Direction.h
10 ${Modeling_SRC_DIR}/ModelingApp.h
11 ${Modeling_SRC_DIR}/ModelingDoc.h
12 ${Modeling_SRC_DIR}/StdAfx.h
13 ${Modeling_SRC_DIR}/State.h )
14set (Modeling_SOURCE_FILES ${Modeling_SRC_DIR}/ISession_Direction.cpp
15 ${Modeling_SRC_DIR}/ModelingApp.cpp
16 ${Modeling_SRC_DIR}/ModelingDoc.cpp
17 ${Modeling_SRC_DIR}/StdAfx.cpp )
18
19set (Modeling_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/02_Modeling/res)
20set (Modeling_RESOURCE_HEADER ${Modeling_RESOURCE_DIR}/resource.h)
21set (Modeling_RESOURCE_FILES ${Modeling_RESOURCE_DIR}/fram2.bmp
22 ${Modeling_RESOURCE_DIR}/Toolbar.bmp
23 ${Modeling_RESOURCE_DIR}/Modeling.rc)
24
25# groups in the VS solution
26source_group ("Source Files" FILES ${Modeling_SOURCE_FILES}
27 ${COMMON_WINMAIN_FILE})
28
29source_group ("Header Files" FILES ${Modeling_HEADER_FILES}
30 ${Modeling_RESOURCE_HEADER})
31
32source_group ("Resource Files" FILES ${Modeling_RESOURCE_FILES})
33
34add_executable ( Modeling WIN32 ${Modeling_SOURCE_FILES}
35 ${Modeling_HEADER_FILES}
36 ${COMMON_WINMAIN_FILE}
37 ${Modeling_RESOURCE_HEADER}
38 ${Modeling_RESOURCE_FILES})
39
40set_property (TARGET Modeling PROPERTY FOLDER Samples)
41
9e3ca93a 42install (TARGETS Modeling
43 CONFIGURATIONS Release
44 DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
45install (TARGETS Modeling
46 CONFIGURATIONS RelWithDebInfo
47 DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
48install (TARGETS Modeling
49 CONFIGURATIONS Debug
50 DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/bind")
51
52include_directories (${CMAKE_BINARY_DIR}/inc
234e52be 53 ${MFC_STANDARD_SAMPLES_DIR}/02_Modeling
4a0c5c25 54 ${Modeling_SRC_DIR}
55 ${MFC_STANDARD_SAMPLES_DIR}/Common)
234e52be 56
57target_link_libraries (Modeling mfcsample TKSTEP209 TKSTEPAttr TKSTEPBase TKBO)