From 0e617b05e74f82442fdaa2eae7819afe41d37ad8 Mon Sep 17 00:00:00 2001 From: ski Date: Thu, 3 Dec 2015 12:28:58 +0300 Subject: [PATCH] 0026902: Configuration, CMake - tests is not installed after definition INSTALL_OCCT_TEST_CASES option Variables responsible for installation of tests and samples were renamed --- CMakeLists.txt | 8 ++++---- adm/cmake/vardescr.cmake | 8 ++++---- dox/dev_guides/building/cmake/cmake.md | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6be9ffcd11..89e3b38986 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,7 @@ project (OCCT) # Solution folder property set_property (GLOBAL PROPERTY USE_FOLDERS ON) -set (INSTALL_OCCT_TEST_CASES OFF CACHE BOOL "${INSTALL_OCCT_TEST_CASES_DESCR}") +set (INSTALL_TEST_CASES OFF CACHE BOOL "${INSTALL_TEST_CASES_DESCR}") # a single-configuration generator like the Makefile generator defines CMAKE_BUILD_TYPE variable # check this variable and set if it's required if (DEFINED CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE) # single-configuration generator. @@ -48,7 +48,7 @@ if (OCCT_ALGO_EXTENDED_OUTPUT) endif() # copy samples to install directory -set (INSTALL_OCCT_SAMPLES OFF CACHE BOOL "${INSTALL_OCCT_SAMPLES_DESCR}") +set (INSTALL_SAMPLES OFF CACHE BOOL "${INSTALL_SAMPLES_DESCR}") # install dir of the built project set (INSTALL_DIR "" CACHE PATH "${INSTALL_DIR_DESCR}" ) @@ -375,11 +375,11 @@ message (STATUS "Info: \(${CURRENT_TIME}\) End the collecting") OCCT_INSTALL_FILE_OR_DIR ("data" "${INSTALL_DIR}") OCCT_INSTALL_FILE_OR_DIR ("samples/tcl" "${INSTALL_DIR}/samples") -if (INSTALL_OCCT_SAMPLES) +if (INSTALL_SAMPLES) OCCT_INSTALL_FILE_OR_DIR ("samples" "${INSTALL_DIR}") endif() -if (INSTALL_OCCT_TEST_CASES) +if (INSTALL_TEST_CASES) OCCT_INSTALL_FILE_OR_DIR ("tests" "${INSTALL_DIR}") endif() diff --git a/adm/cmake/vardescr.cmake b/adm/cmake/vardescr.cmake index 2bf0ca3bcc..189648d273 100644 --- a/adm/cmake/vardescr.cmake +++ b/adm/cmake/vardescr.cmake @@ -24,8 +24,8 @@ These include messages on internal errors and special cases encountered, timing # install variables set (INSTALL_DIR_DESCR -"The place where built OCCT libraries, headers, test cases (INSTALL_OCCT_TEST_CASES variable), -samples (INSTALL_OCCT_SAMPLES_DESCR variable) and certain 3rdparties (INSTALL_GL2PS, INSTALL_TBB and +"The place where built OCCT libraries, headers, test cases (INSTALL_TEST_CASES variable), +samples (INSTALL_SAMPLES_DESCR variable) and certain 3rdparties (INSTALL_GL2PS, INSTALL_TBB and other similar variables) will be placed during the installation process (building INSTALL project)") macro (INSTALL_MESSAGE INSTALL_TARGET_VARIABLE INSTALL_TARGET_STRING) @@ -34,8 +34,8 @@ set (${INSTALL_TARGET_VARIABLE}_DESCR project) into the installation directory (INSTALL_DIR variable)") endmacro() -INSTALL_MESSAGE (INSTALL_OCCT_SAMPLES "OCCT samples") -INSTALL_MESSAGE (INSTALL_OCCT_TEST_CASES "non-regression OCCT test scripts") +INSTALL_MESSAGE (INSTALL_SAMPLES "OCCT samples") +INSTALL_MESSAGE (INSTALL_TEST_CASES "non-regression OCCT test scripts") INSTALL_MESSAGE (INSTALL_DOC_OcctOverview "OCCT overview documentation (HTML format)") INSTALL_MESSAGE (INSTALL_FREEIMAGE "FreeImage binaries") INSTALL_MESSAGE (INSTALL_FREEIMAGEPLUS "FreeImagePlus binaries") diff --git a/dox/dev_guides/building/cmake/cmake.md b/dox/dev_guides/building/cmake/cmake.md index e28be5bd5e..a1d4436486 100644 --- a/dox/dev_guides/building/cmake/cmake.md +++ b/dox/dev_guides/building/cmake/cmake.md @@ -117,8 +117,8 @@ The following table enumerates the full list of environment variables used at co | INSTALL_TBB | Boolean flag | Indicates whether TBB binaries should be installed into the installation directory | | INSTALL_VTK | Boolean flag | Indicates whether VTK binaries should be installed into the installation directory | | INSTALL_TCL | Boolean flag | Indicates whether TCL binaries should be installed into the installation directory | -| INSTALL_OCCT_TEST_CASES | Boolean flag | Indicates whether non-regression OCCT test scripts should be installed into the installation directory | -| INSTALL_OCCT_SAMPLES | Boolean flag | Indicates whether OCCT samples should be installed into the installation directory | +| INSTALL_TEST_CASES | Boolean flag | Indicates whether non-regression OCCT test scripts should be installed into the installation directory | +| INSTALL_SAMPLES | Boolean flag | Indicates whether OCCT samples should be installed into the installation directory | | INSTALL_DOC_OcctOverview | Boolean flag | Indicates whether OCCT overview documentation should be installed into the installation directory | **Note:** In those CMake options defining paths only the forward slashes ("/") are acceptable.