0024888: Refactoring of OCCT CMake meta-project
authoribs <ibs@opencascade.com>
Thu, 18 Sep 2014 11:22:02 +0000 (15:22 +0400)
committerbugmaster <bugmaster@opencascade.com>
Thu, 18 Sep 2014 11:22:41 +0000 (15:22 +0400)
commit9f33b387e27e4d5b1bca7b2685eb0c48f3d155fd
treea64060bc852986fe47c6d4410e8c048fa3792290
parent8aeeca44df12896979f0b24d837cac572c97bbae
0024888: Refactoring of OCCT CMake meta-project

user sees just dirs of libs, shared libs and headers of 3rdparty products
documentation updated

3rdparty search priority was fixed: 1. user paths; 2. system paths
3rdparty debug usage fixed
vtk search introduced
occt information, generated by wok, was divided onto two files: occt_toolkits.cmake and occt_inc_toolkits.cmake
additional behavior of cmake search for freetype 2.5.1 and above

CMake (version < 3.0) don't know about new place of config/ftheader.h in freetype 2.5.1. There are cases when cmake seeks config/ftheader.h in defined place (3RDPARTY_FREETYPE_DIR variable), doesn't find it and start new search in system places. If system has own freetype header- cmake will find it and 3RDPARTY_FREETYPE* variables will point to different places. This situation is avoided

tcl, freetype, vtk are checked before usage of it (CSF variables usage)
tbb search mechanism was refactored
freetype search is processed by default cmake mechanism
tcl search is processed by default cmake mechanism

3rdparty macro seeks debug libraries (and release if debug ones aren't found); 3rdparty dll is sought in win case only

ADD_SUBDIRECTORY preferred to SUBDIRS

gendoc.bat search for tclsh.exe in user's system

0025141: CMake / MinGW: link recipe fails due to long command

0025146: Porting to Android

OCCT documentation updated. "Building with CMake and ADT for Android" article added

[CMAKE] custom.sh.in uses library variables instead unused dll ones.

-DDEBUG remove from CMAKE_CXX_FLAGS_DEBUG and CMAKE_C_FLAGS_DEBUG

hide unused 3rdparty in android case

also messages of freetype search mechanism slightly updated
46 files changed:
CMakeLists.txt
adm/templates/3rdparty_macro.cmake [new file with mode: 0644]
adm/templates/custom.bat.in
adm/templates/custom.bat.main
adm/templates/custom.sh.in
adm/templates/custom.sh.main
adm/templates/env.bat.in
adm/templates/env.sh.in
adm/templates/freeimage.cmake [new file with mode: 0644]
adm/templates/freeimageplus.cmake [new file with mode: 0644]
adm/templates/freetype.cmake [new file with mode: 0644]
adm/templates/gl2ps.cmake [new file with mode: 0644]
adm/templates/glx.cmake [new file with mode: 0644]
adm/templates/occt_defs_flags.cmake [new file with mode: 0644]
adm/templates/occt_macros.cmake [new file with mode: 0644]
adm/templates/opencl.cmake [new file with mode: 0644]
adm/templates/tbb.cmake
adm/templates/tcl.cmake
dox/FILES_HTML.txt
dox/dev_guides/building/android/android.md [new file with mode: 0644]
dox/dev_guides/building/android/images/android_image001.png [new file with mode: 0644]
dox/dev_guides/building/android/images/android_image002.png [new file with mode: 0644]
dox/dev_guides/building/android/images/android_image003.png [new file with mode: 0644]
dox/dev_guides/building/android/images/android_image004.png [new file with mode: 0644]
dox/dev_guides/building/android/images/android_image005.png [new file with mode: 0644]
dox/dev_guides/building/android/images/android_image006.png [new file with mode: 0644]
dox/dev_guides/building/android/images/android_image007.png [new file with mode: 0644]
dox/dev_guides/building/android/images/android_image008.png [new file with mode: 0644]
dox/dev_guides/building/android/images/android_image009.png [new file with mode: 0644]
dox/dev_guides/building/android/images/android_image010.png [new file with mode: 0644]
dox/dev_guides/building/building.md
dox/dev_guides/building/cmake/cmake.md
dox/dev_guides/building/cmake/images/cmake_image006.png [deleted file]
dox/overview/overview.md
gendoc.bat
samples/mfc/standard/01_Geometry/CMakeLists.txt
samples/mfc/standard/02_Modeling/CMakeLists.txt
samples/mfc/standard/03_Viewer2d/CMakeLists.txt
samples/mfc/standard/04_Viewer3d/CMakeLists.txt
samples/mfc/standard/05_ImportExport/CMakeLists.txt
samples/mfc/standard/06_Ocaf/CMakeLists.txt
samples/mfc/standard/07_Triangulation/CMakeLists.txt
samples/mfc/standard/08_HLR/CMakeLists.txt
samples/mfc/standard/09_Animation/CMakeLists.txt
samples/mfc/standard/10_Convert/CMakeLists.txt
samples/mfc/standard/mfcsample/CMakeLists.txt