234e52be |
1 | cmake_minimum_required (VERSION 2.6) |
2 | |
3 | project (Animation) |
4 | |
576f8b11 |
5 | add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE) |
6 | set (CMAKE_MFC_FLAG 2) |
234e52be |
7 | |
8 | set (Animation_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/src) |
9 | set (Animation_HEADER_FILES ${Animation_SRC_DIR}/AnimationApp.h |
10 | ${Animation_SRC_DIR}/AnimationDoc.h |
11 | ${Animation_SRC_DIR}/AnimationView3D.h |
12 | ${Animation_SRC_DIR}/Fonc.hxx |
13 | ${Animation_SRC_DIR}/Sensitivity.h |
14 | ${Animation_SRC_DIR}/ShadingDialog.h |
15 | ${Animation_SRC_DIR}/ThreadDialog.h |
16 | ${Animation_SRC_DIR}/Tune.h |
17 | ${Animation_SRC_DIR}/StdAfx.h ) |
18 | set (Animation_SOURCE_FILES ${Animation_SRC_DIR}/AnimationApp.cpp |
19 | ${Animation_SRC_DIR}/AnimationDoc.cpp |
20 | ${Animation_SRC_DIR}/AnimationView3D.cpp |
21 | ${Animation_SRC_DIR}/Fonc.cxx |
22 | ${Animation_SRC_DIR}/Sensitivity.cpp |
23 | ${Animation_SRC_DIR}/ShadingDialog.cpp |
24 | ${Animation_SRC_DIR}/ThreadDialog.cpp |
25 | ${Animation_SRC_DIR}/Tune.cpp |
26 | ${Animation_SRC_DIR}/StdAfx.cpp ) |
27 | |
28 | set (Animation_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/res) |
29 | set (Animation_RESOURCE_HEADER ${Animation_RESOURCE_DIR}/resource.h) |
30 | set (Animation_RESOURCE_FILES ${Animation_RESOURCE_DIR}/child2.bmp |
31 | ${Animation_RESOURCE_DIR}/Toolbar.bmp |
32 | ${Animation_RESOURCE_DIR}/Animation.rc) |
33 | |
34 | # groups in the VS solution |
35 | source_group ("Source Files" FILES ${Animation_SOURCE_FILES} |
36 | ${COMMON_WINMAIN_FILE}) |
37 | |
38 | source_group ("Header Files" FILES ${Animation_HEADER_FILES}) |
39 | |
40 | source_group ("Resource Files" FILES ${Animation_RESOURCE_FILES}) |
41 | |
42 | add_executable (Animation WIN32 ${Animation_SOURCE_FILES} |
43 | ${Animation_HEADER_FILES} |
44 | ${COMMON_WINMAIN_FILE} |
45 | ${Animation_RESOURCE_FILES}) |
46 | |
47 | set_property (TARGET Animation PROPERTY FOLDER Samples) |
48 | |
4b3541c6 |
49 | if (SINGLE_GENERATOR) |
50 | install (TARGETS Animation DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}") |
51 | else() |
52 | install (TARGETS Animation |
53 | CONFIGURATIONS Release RelWithDebInfo |
54 | DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}") |
55 | install (TARGETS Animation |
56 | CONFIGURATIONS Debug |
57 | DESTINATION "${INSTALL_DIR}/${INSTALL_DIR_BIN}d") |
58 | endif() |
234e52be |
59 | |
9e3ca93a |
60 | include_directories (${CMAKE_BINARY_DIR}/inc |
234e52be |
61 | ${Animation_RESOURCE_DIR} |
4a0c5c25 |
62 | ${Animation_SRC_DIR} |
63 | ${MFC_STANDARD_SAMPLES_DIR}/Common) |
234e52be |
64 | |
65 | target_link_libraries (Animation mfcsample TKBO) |