9cea604460d26577e3e7a67fd30420e2bb12bb79
[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}/ShadingDialog.h
14                             ${Animation_SRC_DIR}/ThreadDialog.h
15                             ${Animation_SRC_DIR}/StdAfx.h )
16 set (Animation_SOURCE_FILES ${Animation_SRC_DIR}/AnimationApp.cpp
17                             ${Animation_SRC_DIR}/AnimationDoc.cpp
18                             ${Animation_SRC_DIR}/AnimationView3D.cpp
19                             ${Animation_SRC_DIR}/Fonc.cxx
20                             ${Animation_SRC_DIR}/ShadingDialog.cpp
21                             ${Animation_SRC_DIR}/ThreadDialog.cpp
22                             ${Animation_SRC_DIR}/StdAfx.cpp )
23
24 set (Animation_RESOURCE_DIR    ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/res)
25 set (Animation_RESOURCE_HEADER ${Animation_RESOURCE_DIR}/resource.h)
26 set (Animation_RESOURCE_FILES  ${Animation_RESOURCE_DIR}/child2.bmp
27                                ${Animation_RESOURCE_DIR}/Toolbar.bmp
28                                ${Animation_RESOURCE_DIR}/Animation.rc)
29
30 # groups in the VS solution
31 source_group ("Source Files"   FILES ${Animation_SOURCE_FILES}
32                                      ${COMMON_WINMAIN_FILE})
33
34 source_group ("Header Files"   FILES ${Animation_HEADER_FILES})
35
36 source_group ("Resource Files" FILES ${Animation_RESOURCE_FILES})
37
38 add_executable (Animation WIN32 ${Animation_SOURCE_FILES}
39                                 ${Animation_HEADER_FILES}
40                                 ${COMMON_WINMAIN_FILE}
41                                 ${Animation_RESOURCE_FILES})
42
43 set_property (TARGET Animation PROPERTY FOLDER "Samples/mfc")
44
45 if (SINGLE_GENERATOR)
46   install (TARGETS Animation DESTINATION "${INSTALL_DIR_BIN}")
47 else()
48   install (TARGETS Animation
49            CONFIGURATIONS Release RelWithDebInfo
50            DESTINATION "${INSTALL_DIR_BIN}")
51   install (TARGETS Animation
52            CONFIGURATIONS Debug
53            DESTINATION "${INSTALL_DIR_BIN}d")
54 endif()
55
56 include_directories (${CMAKE_BINARY_DIR}/inc
57                      ${Animation_RESOURCE_DIR}
58                      ${Animation_SRC_DIR}
59                      ${MFC_STANDARD_SAMPLES_DIR}/Common)
60
61 target_link_libraries (Animation mfcsample TKBO)