mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
Install occt folder now can contain several occt configurations - custom.bat/sh was added to include specific (for each occt config) custom.bat/sh files - specific custom.bat/sh is added for each configuration (e.g., custom_vc9_win32_d.bat), generated by cmake and included within custom.bat/sh - draw.bat has three argument, e.g., vc9 win32 debug (as occt behavior) - sample.bat has one or four arguments, e.g., sample_name vc8 win64 release - PATH is not changed. DRAWEXE.exe is called from specific folder patched custom.[bat/sh].[main/in] files have higher priority than origin ones Documentation was updated to describe new features of CMake Seeking process of OpenCL include folder was fixed
52 lines
2.8 KiB
CMake
52 lines
2.8 KiB
CMake
cmake_minimum_required (VERSION 2.6)
|
|
|
|
project (Triangulation)
|
|
|
|
add_definitions (-DWINVER=0x0500)
|
|
|
|
set (Triangulation_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation/src)
|
|
set (Triangulation_HEADER_FILES ${Triangulation_SRC_DIR}/ISession_Curve.h
|
|
${Triangulation_SRC_DIR}/OCCDemo_Presentation.h
|
|
${Triangulation_SRC_DIR}/Tesselate_Presentation.h
|
|
${Triangulation_SRC_DIR}/TriangulationApp.h
|
|
${Triangulation_SRC_DIR}/TriangulationDoc.h
|
|
${Triangulation_SRC_DIR}/StdAfx.h )
|
|
set (Triangulation_SOURCE_FILES ${Triangulation_SRC_DIR}/ISession_Curve.cpp
|
|
${Triangulation_SRC_DIR}/OCCDemo_Presentation.cpp
|
|
${Triangulation_SRC_DIR}/Tesselate_Presentation.cpp
|
|
${Triangulation_SRC_DIR}/TriangulationApp.cpp
|
|
${Triangulation_SRC_DIR}/TriangulationDoc.cpp
|
|
${Triangulation_SRC_DIR}/StdAfx.cpp)
|
|
|
|
set (Triangulation_RESOURCE_DIR ${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation/res)
|
|
set (Triangulation_RESOURCE_HEADER ${Triangulation_RESOURCE_DIR}/resource.h)
|
|
set (Triangulation_RESOURCE_FILES ${Triangulation_RESOURCE_DIR}/Toolbar.bmp
|
|
${Triangulation_RESOURCE_DIR}/Triangulation.rc)
|
|
|
|
# groups in the VS solution
|
|
source_group ("Source Files" FILES ${Triangulation_SOURCE_FILES}
|
|
${COMMON_WINMAIN_FILE})
|
|
|
|
source_group ("Header Files" FILES ${Triangulation_HEADER_FILES}
|
|
${Triangulation_RESOURCE_HEADER})
|
|
|
|
source_group ("Resource Files" FILES ${Triangulation_RESOURCE_FILES})
|
|
|
|
add_executable (Triangulation WIN32 ${Triangulation_SOURCE_FILES}
|
|
${Triangulation_HEADER_FILES}
|
|
${COMMON_WINMAIN_FILE}
|
|
${Triangulation_RESOURCE_HEADER}
|
|
${Triangulation_RESOURCE_FILES})
|
|
|
|
set_property (TARGET Triangulation PROPERTY FOLDER Samples)
|
|
|
|
install (TARGETS Triangulation RUNTIME DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/bin${BUILD_SUFFIX}"
|
|
ARCHIVE DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_SUFFIX}"
|
|
LIBRARY DESTINATION "${INSTALL_DIR}/win${COMPILER_BITNESS}/${COMPILER}/lib${BUILD_SUFFIX}")
|
|
|
|
include_directories (${OCCT_ROOT}/inc
|
|
${MFC_STANDARD_SAMPLES_DIR}/07_Triangulation
|
|
${Triangulation_SRC_DIR}
|
|
${MFC_STANDARD_SAMPLES_DIR}/Common)
|
|
|
|
target_link_libraries (Triangulation mfcsample TKSTEP209 TKSTEPAttr TKBO) |