1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +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

81 lines
2.2 KiB
CMake

cmake_minimum_required (VERSION 2.6)
set (PROJECT Convert)
project (${PROJECT} CXX)
set (PROJECT_DIR ${OCCTDEMO_DIR}/${PROJECT})
# List of used sources
set (USED_SRCFILES
${PROJECT_DIR}/Convert_Presentation.cpp )
# List of used headers
set (USED_HEADERFILES
${PROJECT_DIR}/Convert_Presentation.h )
# include headers
include_directories( ${PROJECT_DIR} )
# Specify folders in the VS solution
source_group ( "Source Files" FILES
${USED_SRCFILES} )
source_group ( "Header Files" FILES
${USED_HEADERFILES} )
source_group ( "Common\\Source Files" FILES
${COMMON_SRCFILES} )
source_group ( "Common\\Header Files" FILES
${COMMON_HEADERS} )
source_group ( "Common\\Resource Files" FILES
${COMMON_RESFILES})
# lib to include:
set ( LINK_LIBRARIES
FWOSPlugin.lib
PTKernel.lib
TKBool.lib
TKCAF.lib
TKCDF.lib
TKDraw.lib
TKernel.lib
TKFeat.lib
TKFillet.lib
TKGeomAlgo.lib
TKHLR.lib
TKMath.lib
TKOffset.lib
TKPCAF.lib
TKPrim.lib
TKPShape.lib
TKService.lib
TKTopAlgo.lib
TKV3d.lib
TKBRep.lib
TKG2d.lib
TKG3d.lib
TKGeomBase.lib
TKBO.lib)
add_executable ( ${PROJECT} WIN32
${USED_SRCFILES}
${COMMON_SRCFILES}
${USED_HEADERFILES}
${COMMON_HEADERS}
${COMMON_RESFILES} )
target_link_libraries( ${PROJECT} "${LINK_LIBRARIES}" )
set_target_properties( ${PROJECT} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_DEBUG ${OCC_SAMPLES_OUTPUT_PATH}/bind
RUNTIME_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind
LIBRARY_OUTPUT_DIRECTORY_RELEASE ${OCC_SAMPLES_OUTPUT_PATH}/bind )