1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/samples/mfc/standard/08_HLR/CMakeLists.txt
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

74 lines
3.2 KiB
CMake

cmake_minimum_required (VERSION 2.6)
project (HLR)
add_definitions(-DWINVER=0x0500)
set (HLR_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/08_HLR/src)
set (HLR_HEADER_FILES ${HLR_SRC_DIR}/HLRApp.h
${HLR_SRC_DIR}/HLRDoc.h
${HLR_SRC_DIR}/HLRView2D.h
${HLR_SRC_DIR}/SelectionDialog.h
${HLR_SRC_DIR}/StdAfx.h )
set (HLR_SOURCE_FILES ${HLR_SRC_DIR}/HLRApp.cpp
${HLR_SRC_DIR}/HLRDoc.cpp
${HLR_SRC_DIR}/HLRView2D.cpp
${HLR_SRC_DIR}/SelectionDialog.cpp
${HLR_SRC_DIR}/StdAfx.cpp )
set (HLR_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/08_HLR/res)
set (HLR_RESOURCE_HEADER ${HLR_RESOURCE_DIR}/resource.h)
set (HLR_RESOURCE_FILES ${HLR_RESOURCE_DIR}/axoviewd.bmp
${HLR_RESOURCE_DIR}/axoviewf.bmp
${HLR_RESOURCE_DIR}/AXOVIEWU.bmp
${HLR_RESOURCE_DIR}/BACKVIEWD.bmp
${HLR_RESOURCE_DIR}/BACKVIEWF.bmp
${HLR_RESOURCE_DIR}/BACKVIEWU.bmp
${HLR_RESOURCE_DIR}/BOTTOMVIEWD.bmp
${HLR_RESOURCE_DIR}/BOTTOMVIEWF.bmp
${HLR_RESOURCE_DIR}/BOTTOMVIEWU.bmp
${HLR_RESOURCE_DIR}/ChildFrame2D.bmp
${HLR_RESOURCE_DIR}/ChildFrame3D.bmp
${HLR_RESOURCE_DIR}/FRONTVIEWD.bmp
${HLR_RESOURCE_DIR}/FRONTVIEWF.bmp
${HLR_RESOURCE_DIR}/FRONTVIEWU.bmp
${HLR_RESOURCE_DIR}/LEFTVIEWD.bmp
${HLR_RESOURCE_DIR}/LEFTVIEWF.bmp
${HLR_RESOURCE_DIR}/LEFTVIEWU.bmp
${HLR_RESOURCE_DIR}/RIGHTVIEWD.bmp
${HLR_RESOURCE_DIR}/RIGHTVIEWF.bmp
${HLR_RESOURCE_DIR}/RIGHTVIEWU.bmp
${HLR_RESOURCE_DIR}/Toolbar.bmp
${HLR_RESOURCE_DIR}/ToolBarObjects.bmp
${HLR_RESOURCE_DIR}/topviewd.bmp
${HLR_RESOURCE_DIR}/topviewf.bmp
${HLR_RESOURCE_DIR}/topviewu.bmp
${HLR_RESOURCE_DIR}/HLR.rc)
# groups in the VS solution
source_group ("Source Files" FILES ${HLR_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Header Files" FILES ${HLR_HEADER_FILES}
${HLR_RESOURCE_HEADER})
source_group ("Resource Files" FILES ${HLR_RESOURCE_FILES})
add_executable (HLR WIN32 ${HLR_SOURCE_FILES}
${HLR_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${HLR_RESOURCE_HEADER}
${HLR_RESOURCE_FILES} )
set_property (TARGET HLR PROPERTY FOLDER Samples)
install (TARGETS HLR 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
${HLR_RESOURCE_DIR}
${HLR_SRC_DIR})
target_link_libraries (HLR mfcsample)