0024469: cmake mfcsample project skippes ParamsFacesPage
[occt.git] / samples / mfc / standard / 09_Animation / CMakeLists.txt
CommitLineData
234e52be 1cmake_minimum_required (VERSION 2.6)
2
3project (Animation)
4
5add_definitions (-DWINVER=0x0500)
6
7set (Animation_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/src)
8set (Animation_HEADER_FILES ${Animation_SRC_DIR}/AnimationApp.h
9 ${Animation_SRC_DIR}/AnimationDoc.h
10 ${Animation_SRC_DIR}/AnimationView3D.h
11 ${Animation_SRC_DIR}/Fonc.hxx
12 ${Animation_SRC_DIR}/Sensitivity.h
13 ${Animation_SRC_DIR}/ShadingDialog.h
14 ${Animation_SRC_DIR}/ThreadDialog.h
15 ${Animation_SRC_DIR}/Tune.h
16 ${Animation_SRC_DIR}/StdAfx.h )
17set (Animation_SOURCE_FILES ${Animation_SRC_DIR}/AnimationApp.cpp
18 ${Animation_SRC_DIR}/AnimationDoc.cpp
19 ${Animation_SRC_DIR}/AnimationView3D.cpp
20 ${Animation_SRC_DIR}/Fonc.cxx
21 ${Animation_SRC_DIR}/Sensitivity.cpp
22 ${Animation_SRC_DIR}/ShadingDialog.cpp
23 ${Animation_SRC_DIR}/ThreadDialog.cpp
24 ${Animation_SRC_DIR}/Tune.cpp
25 ${Animation_SRC_DIR}/StdAfx.cpp )
26
27set (Animation_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/res)
28set (Animation_RESOURCE_HEADER ${Animation_RESOURCE_DIR}/resource.h)
29set (Animation_RESOURCE_FILES ${Animation_RESOURCE_DIR}/child2.bmp
30 ${Animation_RESOURCE_DIR}/Toolbar.bmp
31 ${Animation_RESOURCE_DIR}/Animation.rc)
32
33# groups in the VS solution
34source_group ("Source Files" FILES ${Animation_SOURCE_FILES}
35 ${COMMON_WINMAIN_FILE})
36
37source_group ("Header Files" FILES ${Animation_HEADER_FILES})
38
39source_group ("Resource Files" FILES ${Animation_RESOURCE_FILES})
40
41add_executable (Animation WIN32 ${Animation_SOURCE_FILES}
42 ${Animation_HEADER_FILES}
43 ${COMMON_WINMAIN_FILE}
44 ${Animation_RESOURCE_FILES})
45
46set_property (TARGET Animation PROPERTY FOLDER Samples)
47
48install (TARGETS Animation RUNTIME DESTINATION "${INSTALL_DIR}/bin"
49 ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
50 LIBRARY DESTINATION "${INSTALL_DIR}/lib")
51
52include_directories (${OCCT_ROOT}/inc
234e52be 53 ${Animation_RESOURCE_DIR}
4a0c5c25 54 ${Animation_SRC_DIR}
55 ${MFC_STANDARD_SAMPLES_DIR}/Common)
234e52be 56
57target_link_libraries (Animation mfcsample TKBO)