1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
ibs 234e52be90 0023874: Converting OCCT MFC samples to CMake build system.
CMake meta-projects for samples were added
launch script for samples was added
unrelated changes: CSF_GraphicShr variable were removed
occt building with cmake article was updated
2013-11-14 15:11:59 +04:00

57 lines
2.6 KiB
CMake

cmake_minimum_required (VERSION 2.6)
project (Animation)
add_definitions (-DWINVER=0x0500)
set (Animation_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/src)
set (Animation_HEADER_FILES ${Animation_SRC_DIR}/AnimationApp.h
${Animation_SRC_DIR}/AnimationDoc.h
${Animation_SRC_DIR}/AnimationView3D.h
${Animation_SRC_DIR}/Fonc.hxx
${Animation_SRC_DIR}/Sensitivity.h
${Animation_SRC_DIR}/ShadingDialog.h
${Animation_SRC_DIR}/ThreadDialog.h
${Animation_SRC_DIR}/Tune.h
${Animation_SRC_DIR}/StdAfx.h )
set (Animation_SOURCE_FILES ${Animation_SRC_DIR}/AnimationApp.cpp
${Animation_SRC_DIR}/AnimationDoc.cpp
${Animation_SRC_DIR}/AnimationView3D.cpp
${Animation_SRC_DIR}/Fonc.cxx
${Animation_SRC_DIR}/Sensitivity.cpp
${Animation_SRC_DIR}/ShadingDialog.cpp
${Animation_SRC_DIR}/ThreadDialog.cpp
${Animation_SRC_DIR}/Tune.cpp
${Animation_SRC_DIR}/StdAfx.cpp )
set (Animation_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/09_Animation/res)
set (Animation_RESOURCE_HEADER ${Animation_RESOURCE_DIR}/resource.h)
set (Animation_RESOURCE_FILES ${Animation_RESOURCE_DIR}/child2.bmp
${Animation_RESOURCE_DIR}/Toolbar.bmp
${Animation_RESOURCE_DIR}/Animation.rc)
# groups in the VS solution
source_group ("Source Files" FILES ${Animation_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Header Files" FILES ${Animation_HEADER_FILES})
source_group ("Resource Files" FILES ${Animation_RESOURCE_FILES})
add_executable (Animation WIN32 ${Animation_SOURCE_FILES}
${Animation_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${Animation_RESOURCE_FILES})
set_property (TARGET Animation PROPERTY FOLDER Samples)
install (TARGETS Animation RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories (${OCCT_ROOT}/inc
${MFC_STANDARD_SAMPLES_DIR}/Common
${Animation_RESOURCE_DIR}
${Animation_SRC_DIR})
target_link_libraries (Animation mfcsample TKBO)