0025114: CMake-based build tools for OCCT 7.0
[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 install (TARGETS Animation RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_POSTFIX}"
50                            ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}"
51                            LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_POSTFIX}")
52
53 include_directories (${CMAKE_SOURCE_DIR}/src
54                      ${Animation_RESOURCE_DIR}
55                      ${Animation_SRC_DIR}
56                      ${MFC_STANDARD_SAMPLES_DIR}/Common)
57
58 target_link_libraries (Animation mfcsample TKBO)