0c6bfa5b0aaf423d5bfb4d778b24c2d74c301a14
[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=0x0501 -DUNICODE -D_UNICODE)
6 set (CMAKE_MFC_FLAG 2)
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
49 if (SINGLE_GENERATOR)
50   install (TARGETS Animation DESTINATION "${INSTALL_DIR_BIN}")
51 else()
52   install (TARGETS Animation
53            CONFIGURATIONS Release RelWithDebInfo
54            DESTINATION "${INSTALL_DIR_BIN}")
55   install (TARGETS Animation
56            CONFIGURATIONS Debug
57            DESTINATION "${INSTALL_DIR_BIN}d")
58 endif()
59
60 include_directories (${CMAKE_BINARY_DIR}/inc
61                      ${Animation_RESOURCE_DIR}
62                      ${Animation_SRC_DIR}
63                      ${MFC_STANDARD_SAMPLES_DIR}/Common)
64
65 target_link_libraries (Animation mfcsample TKBO)