0025114: CMake-based build tools for OCCT 7.0
[occt.git] / samples / mfc / standard / 09_Animation / CMakeLists.txt
CommitLineData
234e52be 1cmake_minimum_required (VERSION 2.6)
2
3project (Animation)
4
576f8b11 5add_definitions (-DWINVER=0x0501 -DUNICODE -D_UNICODE)
6set (CMAKE_MFC_FLAG 2)
234e52be 7
8set (Animation_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/src)
9set (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 )
18set (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
28set (Animation_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/res)
29set (Animation_RESOURCE_HEADER ${Animation_RESOURCE_DIR}/resource.h)
30set (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
35source_group ("Source Files" FILES ${Animation_SOURCE_FILES}
36 ${COMMON_WINMAIN_FILE})
37
38source_group ("Header Files" FILES ${Animation_HEADER_FILES})
39
40source_group ("Resource Files" FILES ${Animation_RESOURCE_FILES})
41
42add_executable (Animation WIN32 ${Animation_SOURCE_FILES}
43 ${Animation_HEADER_FILES}
44 ${COMMON_WINMAIN_FILE}
45 ${Animation_RESOURCE_FILES})
46
47set_property (TARGET Animation PROPERTY FOLDER Samples)
48
9f33b387 49install (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}")
234e52be 52
19286d7c 53include_directories (${CMAKE_SOURCE_DIR}/src
234e52be 54 ${Animation_RESOURCE_DIR}
4a0c5c25 55 ${Animation_SRC_DIR}
56 ${MFC_STANDARD_SAMPLES_DIR}/Common)
234e52be 57
58target_link_libraries (Animation mfcsample TKBO)