88a6c68fe2c8be84f0cb4838a64ee6afa97e9e18
[occt.git] / samples / mfc / standard / 09_Animation / CMakeLists.txt
1 cmake_minimum_required (VERSION 2.6)
2
3 project (Animation)
4
5 add_definitions (-DWINVER=0x0500)
6
7 set (Animation_SRC_DIR      ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/src)
8 set (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 )
17 set (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
27 set (Animation_RESOURCE_DIR    ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/res)
28 set (Animation_RESOURCE_HEADER ${Animation_RESOURCE_DIR}/resource.h)
29 set (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
34 source_group ("Source Files"   FILES ${Animation_SOURCE_FILES}
35                                      ${COMMON_WINMAIN_FILE})
36
37 source_group ("Header Files"   FILES ${Animation_HEADER_FILES})
38
39 source_group ("Resource Files" FILES ${Animation_RESOURCE_FILES})
40
41 add_executable (Animation WIN32 ${Animation_SOURCE_FILES}
42                                 ${Animation_HEADER_FILES}
43                                 ${COMMON_WINMAIN_FILE}
44                                 ${Animation_RESOURCE_FILES})
45
46 set_property (TARGET Animation PROPERTY FOLDER Samples)
47
48 install (TARGETS Animation RUNTIME DESTINATION "${INSTALL_DIR}/bin"
49                            ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
50                            LIBRARY DESTINATION "${INSTALL_DIR}/lib")
51
52 include_directories (${OCCT_ROOT}/inc
53                      ${MFC_STANDARD_SAMPLES_DIR}/Common
54                      ${Animation_RESOURCE_DIR}
55                      ${Animation_SRC_DIR})
56
57 target_link_libraries (Animation mfcsample TKBO)