Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit faca57b

Browse files
Initial version of open source release.
0 parents  commit faca57b

File tree

443 files changed

+53906
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

443 files changed

+53906
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sh binary

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# The following files are ignored by Git
2+
3+
*.TMP
4+
*.o
5+
*.exe
6+
build*
7+
*~
8+
*#
9+
10+
# Eclipse CDT project files
11+
.project
12+
.cproject
13+
.settings/
14+
15+
# Latex output files
16+
*.aux
17+
*.log
18+
*.out
19+
*.pdf
20+
*.toc
21+
*.synctex.gz

CMakeCommon/CheckEnableTests.cmake

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Copyright (c) 2014, Siemens AG. All rights reserved.
2+
#
3+
# Redistribution and use in source and binary forms, with or without
4+
# modification, are permitted provided that the following conditions are met:
5+
#
6+
# 1. Redistributions of source code must retain the above copyright notice,
7+
# this list of conditions and the following disclaimer.
8+
#
9+
# 2. Redistributions in binary form must reproduce the above copyright notice,
10+
# this list of conditions and the following disclaimer in the documentation
11+
# and/or other materials provided with the distribution.
12+
#
13+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
17+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23+
# POSSIBILITY OF SUCH DAMAGE.
24+
25+
## CheckPartestInstall: Checks if partest install path is defined
26+
# Reads: PARTEST_INSTALL_PREFIX
27+
# Sets: partest_includepath_var
28+
# partest_libpath_var
29+
#
30+
function(CheckPartestInstall BUILD_TESTS _partest_includepath _partest_libpath)
31+
if (BUILD_TESTS STREQUAL ON)
32+
set (PARTEST_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/partest_install PARENT_SCOPE)
33+
set (PARTEST_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/partest_install)
34+
35+
set(${_partest_includepath} ${PARTEST_INSTALL_PREFIX}/include PARENT_SCOPE)
36+
set(${_partest_libpath} ${PARTEST_INSTALL_PREFIX}/lib PARENT_SCOPE)
37+
38+
set (tar_extraction_directory ${CMAKE_CURRENT_BINARY_DIR})
39+
message("-- Extracting partest to directoy ${tar_extraction_directory}/partest")
40+
execute_process(
41+
COMMAND ${CMAKE_COMMAND} -E tar xf ${PROJECT_SOURCE_DIR}/partest.tar
42+
WORKING_DIRECTORY ${tar_extraction_directory}
43+
)
44+
45+
if (TARGET PARTEST)
46+
else()
47+
add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/partest ${CMAKE_CURRENT_BINARY_DIR}/partest_build)
48+
endif()
49+
endif()
50+
endfunction()

CMakeCommon/CopyInstallFiles.cmake

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright (c) 2014, Siemens AG. All rights reserved.
2+
#
3+
# Redistribution and use in source and binary forms, with or without
4+
# modification, are permitted provided that the following conditions are met:
5+
#
6+
# 1. Redistributions of source code must retain the above copyright notice,
7+
# this list of conditions and the following disclaimer.
8+
#
9+
# 2. Redistributions in binary form must reproduce the above copyright notice,
10+
# this list of conditions and the following disclaimer in the documentation
11+
# and/or other materials provided with the distribution.
12+
#
13+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
17+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23+
# POSSIBILITY OF SUCH DAMAGE.
24+
25+
# Copies the binary target bin after build to the destination.
26+
#
27+
function(CopyBin
28+
BIN bin
29+
DEST destination
30+
)
31+
get_target_property(bin_full_name ${bin} LOCATION)
32+
33+
add_custom_command(
34+
TARGET ${bin}
35+
POST_BUILD
36+
COMMAND ${CMAKE_COMMAND} -E copy ${bin_full_name} ${destination}
37+
#COMMENT "Copying ${bin} to ${destination}"
38+
)
39+
endfunction()
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright (c) 2014, Siemens AG. All rights reserved.
2+
#
3+
# Redistribution and use in source and binary forms, with or without
4+
# modification, are permitted provided that the following conditions are met:
5+
#
6+
# 1. Redistributions of source code must retain the above copyright notice,
7+
# this list of conditions and the following disclaimer.
8+
#
9+
# 2. Redistributions in binary form must reproduce the above copyright notice,
10+
# this list of conditions and the following disclaimer in the documentation
11+
# and/or other materials provided with the distribution.
12+
#
13+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
17+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23+
# POSSIBILITY OF SUCH DAMAGE.
24+
25+
## DOXYGEN DOCUMENTATION
26+
#
27+
# Is only generated when option(.* ON) is set...
28+
function (CreateDoxygenDocumentationTarget)
29+
option(BUILD_DOCUMENTATION "Use Doxygen to create the HTML based API documentation" ON)
30+
if(BUILD_DOCUMENTATION)
31+
FIND_PACKAGE(Doxygen)
32+
#if (NOT DOXYGEN_FOUND)
33+
# message(FATAL_ERROR
34+
# "Doxygen is needed to build the documentation. Please install it correctly")
35+
#endif()
36+
#-- Configure the Template Doxyfile for our specific project
37+
configure_file(doc/reference/Doxyfile.in
38+
${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE)
39+
#-- Add a custom target to run Doxygen when ever the project is built
40+
if (TARGET doxygen)
41+
# Do nothing, since the repeated adding causes an error
42+
else()
43+
add_custom_target (
44+
doxygen
45+
#ALL
46+
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile
47+
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile)
48+
# IF you do NOT want the documentation to be generated EVERY time you build the project
49+
# then leave out the 'ALL' keyword from the above command.
50+
endif()
51+
endif()
52+
endfunction()

CMakeCommon/GroupSourcesMSVC.cmake

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright (c) 2014, Siemens AG. All rights reserved.
2+
#
3+
# Redistribution and use in source and binary forms, with or without
4+
# modification, are permitted provided that the following conditions are met:
5+
#
6+
# 1. Redistributions of source code must retain the above copyright notice,
7+
# this list of conditions and the following disclaimer.
8+
#
9+
# 2. Redistributions in binary form must reproduce the above copyright notice,
10+
# this list of conditions and the following disclaimer in the documentation
11+
# and/or other materials provided with the distribution.
12+
#
13+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
17+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23+
# POSSIBILITY OF SUCH DAMAGE.
24+
25+
## Visual Studio Project Adaptions
26+
#
27+
# Make a browsable file hierarchy when opening
28+
# the generated visual c++ solution project in visual studio
29+
function(GroupSourcesMSVC directory)
30+
file(GLOB children RELATIVE ${PROJECT_SOURCE_DIR}/${directory} ${PROJECT_SOURCE_DIR}/${directory}/*)
31+
foreach(child ${children})
32+
if(IS_DIRECTORY ${PROJECT_SOURCE_DIR}/${directory}/${child})
33+
GroupSourcesMSVC(${directory}/${child})
34+
else()
35+
string(REPLACE "/" "\\" groupname ${directory})
36+
string(REPLACE "src" "Sources" groupname ${groupname})
37+
string(REPLACE "include" "Includes" groupname ${groupname})
38+
source_group(${groupname} FILES ${PROJECT_SOURCE_DIR}/${directory}/${child})
39+
endif()
40+
endforeach()
41+
endfunction()

CMakeCommon/SetCompilerFlags.cmake

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Copyright (c) 2014, Siemens AG. All rights reserved.
2+
#
3+
# Redistribution and use in source and binary forms, with or without
4+
# modification, are permitted provided that the following conditions are met:
5+
#
6+
# 1. Redistributions of source code must retain the above copyright notice,
7+
# this list of conditions and the following disclaimer.
8+
#
9+
# 2. Redistributions in binary form must reproduce the above copyright notice,
10+
# this list of conditions and the following disclaimer in the documentation
11+
# and/or other materials provided with the distribution.
12+
#
13+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
17+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23+
# POSSIBILITY OF SUCH DAMAGE.
24+
25+
## DETERMINE COMPILER AND LINKER FLAGS
26+
#
27+
function(SetGNUCompilerFlags compiler_libs)
28+
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
29+
set(compiler_libs pthread rt PARENT_SCOPE)
30+
# -Wall -> All warnings
31+
# -Wextra -> Even more warnings
32+
# -Werror -> Warnings are errors
33+
set(warning_flags "-Wall -Wextra")
34+
if (WARNINGS_ARE_ERRORS STREQUAL ON)
35+
set(warning_flags "${warning_flags} -Werror")
36+
endif()
37+
if(CMAKE_COMPILER_IS_GNUCC)
38+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread -std=c99 ${warning_flags}"
39+
PARENT_SCOPE)
40+
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DEMBB_DEBUG"
41+
PARENT_SCOPE)
42+
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNDEBUG"
43+
PARENT_SCOPE)
44+
endif()
45+
if(CMAKE_COMPILER_IS_GNUCXX)
46+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=c++03 ${warning_flags}"
47+
PARENT_SCOPE)
48+
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DEMBB_DEBUG"
49+
PARENT_SCOPE)
50+
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG"
51+
PARENT_SCOPE)
52+
endif()
53+
endif()
54+
endfunction()
55+
56+
function(SetVisualStudioCompilerFlags)
57+
if(MSVC)
58+
# /Wall -> All warnings
59+
# /WX -> Warnings as errors
60+
#
61+
# Globally deactivated warning numbers (by flag \wd#):
62+
# 4820 -> Deactivates warning "2/4/... bytes padding added after some type"
63+
# 4514 -> Deactivates warning "'fct': unreferenced inline function has
64+
# been removed"
65+
# 4668 -> Deactivates warning "'macro' is not defined as preprocessor macro,
66+
# replacing with '0' in #if/#elif"
67+
# 4710 -> Deactivates warning "Function not inlined"
68+
# 4350 -> Deactivates warning "Behavior change ...", which warns a
69+
# behavior change since VS C++ 2002, when using R-values as
70+
# L-value arguments. This warning occurs a lot in the VC libs.
71+
# 4571 -> Deactivates warning that when compiling with /EHs,
72+
# a catch(...) block will not catch a structured exception.
73+
# 4625 -> Deactivates warning for derived classes
74+
# when copy constructor could not be generated because
75+
# a base class copy constructor is inaccessible
76+
# 4626 -> Deactivates warning for derived classes
77+
# when assignment operator could not be generated because
78+
# a base class assignment operator is inaccessible
79+
# 4711 -> Deactivates warning for inline functions
80+
# This is only an informational warning about which functions
81+
# have been inlined by the compiler.
82+
# 4255 -> Deactivates warning "no function prototype given converting () to (void)"
83+
#
84+
# Locally suppressed warnings (should not be globally suppressed):
85+
# 4640 -> Information that local static variable initialization is not
86+
# thread-safe.
87+
set(warning_flags "/Wall /wd4820 /wd4514 /wd4668 /wd4710 /wd4350 /wd4571 /wd4625 /wd4626 /wd4711 /wd4255")
88+
if (WARNINGS_ARE_ERRORS STREQUAL ON)
89+
set(warning_flags "${warning_flags} /WX")
90+
endif()
91+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${warning_flags}" PARENT_SCOPE)
92+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${warning_flags}" PARENT_SCOPE)
93+
endif()
94+
endfunction()

CMakeCommon/SetInstallPaths.cmake

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# Copyright (c) 2014, Siemens AG. All rights reserved.
2+
#
3+
# Redistribution and use in source and binary forms, with or without
4+
# modification, are permitted provided that the following conditions are met:
5+
#
6+
# 1. Redistributions of source code must retain the above copyright notice,
7+
# this list of conditions and the following disclaimer.
8+
#
9+
# 2. Redistributions in binary form must reproduce the above copyright notice,
10+
# this list of conditions and the following disclaimer in the documentation
11+
# and/or other materials provided with the distribution.
12+
#
13+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
17+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23+
# POSSIBILITY OF SUCH DAMAGE.
24+
25+
## Sets the install base path for headers, libraries, and the documentation
26+
#
27+
function(SetInstallPaths)
28+
if (DEFINED INSTALL_PREFIX)
29+
# User given install path given when calling cmake as "-DINSTALL_PREFIX=...".
30+
set(CMAKE_INSTALL_PREFIX ${INSTALL_PREFIX})
31+
set(INSTALL_PREFIX_DOCS "${CMAKE_INSTALL_PREFIX}/doc")
32+
else()
33+
# Default install path is in build directory.
34+
if (DEFINED UNIX)
35+
set(CMAKE_INSTALL_PREFIX "/usr/local")
36+
set(INSTALL_PREFIX_DOCS "/usr/local/share/doc/${CMAKE_PROJECT_NAME}-${EMBB_BASE_VERSION_MAJOR}.${EMBB_BASE_VERSION_MINOR}")
37+
else()
38+
file(TO_CMAKE_PATH "$ENV{ProgramFiles}" _PROG_FILES) # 32-bit dir on win32, useless to us on win64
39+
file(TO_CMAKE_PATH "$ENV{ProgramFiles(x86)}" _PROG_FILES_X86) # 32-bit dir: only set on win64
40+
file(TO_CMAKE_PATH "$ENV{ProgramW6432}" _PROG_FILES_W6432) # 64-bit dir: only set on win64
41+
42+
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
43+
# 64-bit build on win64
44+
set(_PROGFILESDIR "${_PROG_FILES_W6432}")
45+
else()
46+
if(_PROG_FILES_W6432)
47+
# 32-bit build on win64
48+
set(_PROGFILESDIR "${_PROG_FILES_X86}")
49+
else()
50+
# 32-bit build on win32
51+
set(_PROGFILESDIR "${_PROG_FILES}")
52+
endif()
53+
endif()
54+
set(CMAKE_INSTALL_PREFIX "${_PROGFILESDIR}/${CMAKE_PROJECT_NAME}-${EMBB_BASE_VERSION_MAJOR}.${EMBB_BASE_VERSION_MINOR}.${EMBB_BASE_VERSION_PATCH}")
55+
56+
set(INSTALL_PREFIX_DOCS "${CMAKE_INSTALL_PREFIX}/doc")
57+
message(${INSTALL_PREFIX_DOCS})
58+
IF (WIN32)
59+
STRING(REPLACE "\\" "\\\\" CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} )
60+
STRING(REPLACE "/" "\\\\" CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} )
61+
STRING(REPLACE "\\" "\\\\" INSTALL_PREFIX_DOCS ${INSTALL_PREFIX_DOCS} )
62+
STRING(REPLACE "/" "\\\\" INSTALL_PREFIX_DOCS ${INSTALL_PREFIX_DOCS} )
63+
endif()
64+
endif()
65+
endif()
66+
67+
set(INSTALL_PREFIX ${INSTALL_PREFIX} PARENT_SCOPE)
68+
set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} PARENT_SCOPE)
69+
set(INSTALL_PREFIX_DOCS ${INSTALL_PREFIX_DOCS} PARENT_SCOPE)
70+
71+
message("-- Installation path is ${CMAKE_INSTALL_PREFIX}")
72+
if (INSTALL_DOCS STREQUAL "ON")
73+
message("-- Installation path for documentation is ${INSTALL_PREFIX_DOCS}")
74+
else()
75+
message("-- Disabled installation of documentation")
76+
endif()
77+
endfunction()

0 commit comments

Comments
 (0)