1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
ibs 32856b630d 0024629: Possibility to install binaries in vc*/bin(d), vc*/lib(d) directories
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
2014-04-30 13:07:01 +04:00

75 lines
3.3 KiB
CMake

cmake_minimum_required (VERSION 2.6)
project (Convert)
add_definitions (-DWINVER=0x0500)
set (Convert_SRC_DIR ${MFC_STANDARD_SAMPLES_DIR}/10_Convert/src)
set (Convert_HEADER_FILES ${Convert_SRC_DIR}/Convert_Presentation.h
${Convert_SRC_DIR}/OCCDemo_Presentation.h)
set (Convert_SOURCE_FILES ${Convert_SRC_DIR}/Convert_Presentation.cpp
${Convert_SRC_DIR}/OCCDemo_Presentation.cpp )
set (ISESSION_SUBDIR ${Convert_SRC_DIR}/ISession)
set (ISESSION_HEADER_FILES ${ISESSION_SUBDIR}/ISession_Curve.h)
set (ISESSION_SOURCE_FILES ${ISESSION_SUBDIR}/ISession_Curve.cpp)
set (WNT_SUBDIR ${Convert_SRC_DIR}/WNT)
set (WNT_HEADER_FILES ${WNT_SUBDIR}/resource.h
${WNT_SUBDIR}/MainFrm.h
${WNT_SUBDIR}/OCCDemo.h
${WNT_SUBDIR}/OCCDemoDoc.h
${WNT_SUBDIR}/OCCDemoView.h
${WNT_SUBDIR}/ResultDialog.h
${WNT_SUBDIR}/StdAfx.h)
set (WNT_SOURCE_FILES ${WNT_SUBDIR}/MainFrm.cpp
${WNT_SUBDIR}/OCCDemo.cpp
${WNT_SUBDIR}/OCCDemoDoc.cpp
${WNT_SUBDIR}/OCCDemoView.cpp
${WNT_SUBDIR}/ResultDialog.cpp
${WNT_SUBDIR}/StdAfx.cpp)
set (WNT_RESOURCE_DIR ${WNT_SUBDIR}/res)
set (WNT_RESOURCE_FILES ${WNT_RESOURCE_DIR}/OCCDemo.ico
${WNT_RESOURCE_DIR}/occlogo.bmp
${WNT_RESOURCE_DIR}/toolbar.bmp
${WNT_RESOURCE_DIR}/toolbar1.bmp
${WNT_RESOURCE_DIR}/logopen.bmp
${WNT_RESOURCE_DIR}/OCCDemo.rc2
${WNT_SUBDIR}/OCCDemo.rc)
# groups in the VS solution
source_group ("Source Files" FILES ${Convert_SOURCE_FILES}
${COMMON_WINMAIN_FILE})
source_group ("Source Files\\ISession" FILES ${ISESSION_SOURCE_FILES})
source_group ("Source Files\\WNT" FILES ${WNT_SOURCE_FILES})
source_group ("Header Files" FILES ${Convert_HEADER_FILES} )
source_group ("Header Files\\ISession" FILES ${ISESSION_HEADER_FILES} )
source_group ("Header Files\\WNT" FILES ${WNT_HEADER_FILES})
source_group ("Resource Files" FILES ${WNT_RESOURCE_FILES})
add_executable (Convert WIN32 ${Convert_SOURCE_FILES}
${Convert_HEADER_FILES}
${ISESSION_SOURCE_FILES}
${ISESSION_HEADER_FILES}
${WNT_SOURCE_FILES}
${WNT_HEADER_FILES}
${COMMON_WINMAIN_FILE}
${WNT_RESOURCE_FILES} )
set_property (TARGET Convert PROPERTY FOLDER Samples)
install (TARGETS Convert 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
${Convert_SRC_DIR}
${ISESSION_SUBDIR}
${WNT_SUBDIR}
${MFC_STANDARD_SAMPLES_DIR}/Common)
target_link_libraries (Convert mfcsample)