1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
ibs 4a0c5c25a4 0024469: cmake mfcsample project skippes ParamsFacesPage
add ParamsFacesPage.cpp and ParamsFacesPage.h in mfcsample cmake project

Unrelated changes: common samples include paths have lower priority than specific ones
Unrelated changes: debug tbb cmake seeks with _debug postfix
2013-12-17 12:25:09 +04:00

83 lines
4.4 KiB
CMake

cmake_minimum_required (VERSION 2.6)
project (Geometry)
add_definitions(-DWINVER=0x0500)
set (Geometry_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/01_Geometry/src)
set (Geometry_HEADER_FILES ${Geometry_SRC_DIR}/ChildFrm.h
${Geometry_SRC_DIR}/ChildFrm2d.h
${Geometry_SRC_DIR}/GeoAlgo_Sol.hxx
${Geometry_SRC_DIR}/GeometryApp.h
${Geometry_SRC_DIR}/GeometryDoc.h
${Geometry_SRC_DIR}/GeometryView.h
${Geometry_SRC_DIR}/GeometryView2D.h
${Geometry_SRC_DIR}/GeomSources.h
${Geometry_SRC_DIR}/MainFrm.h
${Geometry_SRC_DIR}/StdAfx.h )
set (Geometry_SOURCE_FILES ${Geometry_SRC_DIR}/ChildFrm.cpp
${Geometry_SRC_DIR}/ChildFrm2d.cpp
${Geometry_SRC_DIR}/GeoAlgo_Sol.cxx
${Geometry_SRC_DIR}/GeometryApp.cpp
${Geometry_SRC_DIR}/GeometryDoc.cpp
${Geometry_SRC_DIR}/GeometryView.cpp
${Geometry_SRC_DIR}/GeometryView2D.cpp
${Geometry_SRC_DIR}/GeomSources.cpp
${Geometry_SRC_DIR}/MainFrm.cpp
${Geometry_SRC_DIR}/StdAfx.cpp )
set (Geometry_ISESSION2D_DIR ${Geometry_SRC_DIR}/ISession2D)
set (Geometry_ISESSION2D_HEADER_FILES ${Geometry_ISESSION2D_DIR}/ISession_Curve.h
${Geometry_ISESSION2D_DIR}/ISession_Direction.h
${Geometry_ISESSION2D_DIR}/ISession_Point.h
${Geometry_ISESSION2D_DIR}/ISession_Surface.h
${Geometry_ISESSION2D_DIR}/ISession_Text.h
${Geometry_ISESSION2D_DIR}/ISession2D_Curve.h
${Geometry_ISESSION2D_DIR}/ISession2D_SensitiveCurve.h)
set (Geometry_ISESSION2D_SOURCE_FILES ${Geometry_ISESSION2D_DIR}/ISession_Curve.cpp
${Geometry_ISESSION2D_DIR}/ISession_Direction.cpp
${Geometry_ISESSION2D_DIR}/ISession_Point.cpp
${Geometry_ISESSION2D_DIR}/ISession_Surface.cpp
${Geometry_ISESSION2D_DIR}/ISession_Text.cpp
${Geometry_ISESSION2D_DIR}/ISession2D_Curve.cpp
${Geometry_ISESSION2D_DIR}/ISession2D_SensitiveCurve.cpp)
set (Geometry_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/01_Geometry/res)
set (Geometry_RESOURCE_HEADER ${Geometry_RESOURCE_DIR}/resource.h)
set (Geometry_RESOURCE_FILES ${Geometry_RESOURCE_DIR}/Geometry.rc
${Geometry_RESOURCE_DIR}/Toolbar1.bmp
${Geometry_RESOURCE_DIR}/Toolbar2.bmp)
# groups in the VS solution
source_group ("Source Files" FILES ${Geometry_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Source Files\\ISession2d" FILES ${Geometry_ISESSION2D_SOURCE_FILES})
source_group ("Header Files" FILES ${Geometry_HEADER_FILES}
${Geometry_ISESSION2D_HEADER_FILES}
${Geometry_RESOURCE_HEADER})
source_group ("Resource Files" FILES ${Geometry_RESOURCE_FILES})
add_executable (Geometry WIN32 ${Geometry_SOURCE_FILES}
${Geometry_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${Geometry_ISESSION2D_SOURCE_FILES}
${Geometry_ISESSION2D_HEADER_FILES}
${Geometry_RESOURCE_FILES}
${Geometry_RESOURCE_HEADER})
set_property(TARGET Geometry PROPERTY FOLDER Samples)
install (TARGETS Geometry RUNTIME DESTINATION "${INSTALL_DIR}/bin"
ARCHIVE DESTINATION "${INSTALL_DIR}/lib"
LIBRARY DESTINATION "${INSTALL_DIR}/lib")
include_directories (${OCCT_ROOT}/inc
${Geometry_SRC_DIR}
${Geometry_ISESSION2D_DIR}
${Geometry_RESOURCE_DIR}
${MFC_STANDARD_SAMPLES_DIR}/Common)
target_link_libraries (Geometry mfcsample)