-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial version of open source release.
- Loading branch information
0 parents
commit faca57b
Showing
443 changed files
with
53,906 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.sh binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# The following files are ignored by Git | ||
|
||
*.TMP | ||
*.o | ||
*.exe | ||
build* | ||
*~ | ||
*# | ||
|
||
# Eclipse CDT project files | ||
.project | ||
.cproject | ||
.settings/ | ||
|
||
# Latex output files | ||
*.aux | ||
*.log | ||
*.out | ||
*.toc | ||
*.synctex.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright (c) 2014, Siemens AG. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# | ||
# 1. Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# | ||
# 2. Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
## CheckPartestInstall: Checks if partest install path is defined | ||
# Reads: PARTEST_INSTALL_PREFIX | ||
# Sets: partest_includepath_var | ||
# partest_libpath_var | ||
# | ||
function(CheckPartestInstall BUILD_TESTS _partest_includepath _partest_libpath) | ||
if (BUILD_TESTS STREQUAL ON) | ||
set (PARTEST_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/partest_install PARENT_SCOPE) | ||
set (PARTEST_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/partest_install) | ||
|
||
set(${_partest_includepath} ${PARTEST_INSTALL_PREFIX}/include PARENT_SCOPE) | ||
set(${_partest_libpath} ${PARTEST_INSTALL_PREFIX}/lib PARENT_SCOPE) | ||
|
||
set (tar_extraction_directory ${CMAKE_CURRENT_BINARY_DIR}) | ||
message("-- Extracting partest to directoy ${tar_extraction_directory}/partest") | ||
execute_process( | ||
COMMAND ${CMAKE_COMMAND} -E tar xf ${PROJECT_SOURCE_DIR}/partest.tar | ||
WORKING_DIRECTORY ${tar_extraction_directory} | ||
) | ||
|
||
if (TARGET PARTEST) | ||
else() | ||
add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/partest ${CMAKE_CURRENT_BINARY_DIR}/partest_build) | ||
endif() | ||
endif() | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright (c) 2014, Siemens AG. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# | ||
# 1. Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# | ||
# 2. Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
# Copies the binary target bin after build to the destination. | ||
# | ||
function(CopyBin | ||
BIN bin | ||
DEST destination | ||
) | ||
get_target_property(bin_full_name ${bin} LOCATION) | ||
|
||
add_custom_command( | ||
TARGET ${bin} | ||
POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy ${bin_full_name} ${destination} | ||
#COMMENT "Copying ${bin} to ${destination}" | ||
) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright (c) 2014, Siemens AG. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# | ||
# 1. Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# | ||
# 2. Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
## DOXYGEN DOCUMENTATION | ||
# | ||
# Is only generated when option(.* ON) is set... | ||
function (CreateDoxygenDocumentationTarget) | ||
option(BUILD_DOCUMENTATION "Use Doxygen to create the HTML based API documentation" ON) | ||
if(BUILD_DOCUMENTATION) | ||
FIND_PACKAGE(Doxygen) | ||
#if (NOT DOXYGEN_FOUND) | ||
# message(FATAL_ERROR | ||
# "Doxygen is needed to build the documentation. Please install it correctly") | ||
#endif() | ||
#-- Configure the Template Doxyfile for our specific project | ||
configure_file(doc/reference/Doxyfile.in | ||
${PROJECT_BINARY_DIR}/Doxyfile @ONLY IMMEDIATE) | ||
#-- Add a custom target to run Doxygen when ever the project is built | ||
if (TARGET doxygen) | ||
# Do nothing, since the repeated adding causes an error | ||
else() | ||
add_custom_target ( | ||
doxygen | ||
#ALL | ||
COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile | ||
SOURCES ${PROJECT_BINARY_DIR}/Doxyfile) | ||
# IF you do NOT want the documentation to be generated EVERY time you build the project | ||
# then leave out the 'ALL' keyword from the above command. | ||
endif() | ||
endif() | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (c) 2014, Siemens AG. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# | ||
# 1. Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# | ||
# 2. Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
## Visual Studio Project Adaptions | ||
# | ||
# Make a browsable file hierarchy when opening | ||
# the generated visual c++ solution project in visual studio | ||
function(GroupSourcesMSVC directory) | ||
file(GLOB children RELATIVE ${PROJECT_SOURCE_DIR}/${directory} ${PROJECT_SOURCE_DIR}/${directory}/*) | ||
foreach(child ${children}) | ||
if(IS_DIRECTORY ${PROJECT_SOURCE_DIR}/${directory}/${child}) | ||
GroupSourcesMSVC(${directory}/${child}) | ||
else() | ||
string(REPLACE "/" "\\" groupname ${directory}) | ||
string(REPLACE "src" "Sources" groupname ${groupname}) | ||
string(REPLACE "include" "Includes" groupname ${groupname}) | ||
source_group(${groupname} FILES ${PROJECT_SOURCE_DIR}/${directory}/${child}) | ||
endif() | ||
endforeach() | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# Copyright (c) 2014, Siemens AG. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# | ||
# 1. Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# | ||
# 2. Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
## DETERMINE COMPILER AND LINKER FLAGS | ||
# | ||
function(SetGNUCompilerFlags compiler_libs) | ||
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) | ||
set(compiler_libs pthread rt PARENT_SCOPE) | ||
# -Wall -> All warnings | ||
# -Wextra -> Even more warnings | ||
# -Werror -> Warnings are errors | ||
set(warning_flags "-Wall -Wextra") | ||
if (WARNINGS_ARE_ERRORS STREQUAL ON) | ||
set(warning_flags "${warning_flags} -Werror") | ||
endif() | ||
if(CMAKE_COMPILER_IS_GNUCC) | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread -std=c99 ${warning_flags}" | ||
PARENT_SCOPE) | ||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DEMBB_DEBUG" | ||
PARENT_SCOPE) | ||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DNDEBUG" | ||
PARENT_SCOPE) | ||
endif() | ||
if(CMAKE_COMPILER_IS_GNUCXX) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -std=c++03 ${warning_flags}" | ||
PARENT_SCOPE) | ||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DEMBB_DEBUG" | ||
PARENT_SCOPE) | ||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG" | ||
PARENT_SCOPE) | ||
endif() | ||
endif() | ||
endfunction() | ||
|
||
function(SetVisualStudioCompilerFlags) | ||
if(MSVC) | ||
# /Wall -> All warnings | ||
# /WX -> Warnings as errors | ||
# | ||
# Globally deactivated warning numbers (by flag \wd#): | ||
# 4820 -> Deactivates warning "2/4/... bytes padding added after some type" | ||
# 4514 -> Deactivates warning "'fct': unreferenced inline function has | ||
# been removed" | ||
# 4668 -> Deactivates warning "'macro' is not defined as preprocessor macro, | ||
# replacing with '0' in #if/#elif" | ||
# 4710 -> Deactivates warning "Function not inlined" | ||
# 4350 -> Deactivates warning "Behavior change ...", which warns a | ||
# behavior change since VS C++ 2002, when using R-values as | ||
# L-value arguments. This warning occurs a lot in the VC libs. | ||
# 4571 -> Deactivates warning that when compiling with /EHs, | ||
# a catch(...) block will not catch a structured exception. | ||
# 4625 -> Deactivates warning for derived classes | ||
# when copy constructor could not be generated because | ||
# a base class copy constructor is inaccessible | ||
# 4626 -> Deactivates warning for derived classes | ||
# when assignment operator could not be generated because | ||
# a base class assignment operator is inaccessible | ||
# 4711 -> Deactivates warning for inline functions | ||
# This is only an informational warning about which functions | ||
# have been inlined by the compiler. | ||
# 4255 -> Deactivates warning "no function prototype given converting () to (void)" | ||
# | ||
# Locally suppressed warnings (should not be globally suppressed): | ||
# 4640 -> Information that local static variable initialization is not | ||
# thread-safe. | ||
set(warning_flags "/Wall /wd4820 /wd4514 /wd4668 /wd4710 /wd4350 /wd4571 /wd4625 /wd4626 /wd4711 /wd4255") | ||
if (WARNINGS_ARE_ERRORS STREQUAL ON) | ||
set(warning_flags "${warning_flags} /WX") | ||
endif() | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${warning_flags}" PARENT_SCOPE) | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${warning_flags}" PARENT_SCOPE) | ||
endif() | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Copyright (c) 2014, Siemens AG. All rights reserved. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are met: | ||
# | ||
# 1. Redistributions of source code must retain the above copyright notice, | ||
# this list of conditions and the following disclaimer. | ||
# | ||
# 2. Redistributions in binary form must reproduce the above copyright notice, | ||
# this list of conditions and the following disclaimer in the documentation | ||
# and/or other materials provided with the distribution. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
# POSSIBILITY OF SUCH DAMAGE. | ||
|
||
## Sets the install base path for headers, libraries, and the documentation | ||
# | ||
function(SetInstallPaths) | ||
if (DEFINED INSTALL_PREFIX) | ||
# User given install path given when calling cmake as "-DINSTALL_PREFIX=...". | ||
set(CMAKE_INSTALL_PREFIX ${INSTALL_PREFIX}) | ||
set(INSTALL_PREFIX_DOCS "${CMAKE_INSTALL_PREFIX}/doc") | ||
else() | ||
# Default install path is in build directory. | ||
if (DEFINED UNIX) | ||
set(CMAKE_INSTALL_PREFIX "/usr/local") | ||
set(INSTALL_PREFIX_DOCS "/usr/local/share/doc/${CMAKE_PROJECT_NAME}-${EMBB_BASE_VERSION_MAJOR}.${EMBB_BASE_VERSION_MINOR}") | ||
else() | ||
file(TO_CMAKE_PATH "$ENV{ProgramFiles}" _PROG_FILES) # 32-bit dir on win32, useless to us on win64 | ||
file(TO_CMAKE_PATH "$ENV{ProgramFiles(x86)}" _PROG_FILES_X86) # 32-bit dir: only set on win64 | ||
file(TO_CMAKE_PATH "$ENV{ProgramW6432}" _PROG_FILES_W6432) # 64-bit dir: only set on win64 | ||
|
||
if(CMAKE_SIZEOF_VOID_P EQUAL 8) | ||
# 64-bit build on win64 | ||
set(_PROGFILESDIR "${_PROG_FILES_W6432}") | ||
else() | ||
if(_PROG_FILES_W6432) | ||
# 32-bit build on win64 | ||
set(_PROGFILESDIR "${_PROG_FILES_X86}") | ||
else() | ||
# 32-bit build on win32 | ||
set(_PROGFILESDIR "${_PROG_FILES}") | ||
endif() | ||
endif() | ||
set(CMAKE_INSTALL_PREFIX "${_PROGFILESDIR}/${CMAKE_PROJECT_NAME}-${EMBB_BASE_VERSION_MAJOR}.${EMBB_BASE_VERSION_MINOR}.${EMBB_BASE_VERSION_PATCH}") | ||
|
||
set(INSTALL_PREFIX_DOCS "${CMAKE_INSTALL_PREFIX}/doc") | ||
message(${INSTALL_PREFIX_DOCS}) | ||
IF (WIN32) | ||
STRING(REPLACE "\\" "\\\\" CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} ) | ||
STRING(REPLACE "/" "\\\\" CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} ) | ||
STRING(REPLACE "\\" "\\\\" INSTALL_PREFIX_DOCS ${INSTALL_PREFIX_DOCS} ) | ||
STRING(REPLACE "/" "\\\\" INSTALL_PREFIX_DOCS ${INSTALL_PREFIX_DOCS} ) | ||
endif() | ||
endif() | ||
endif() | ||
|
||
set(INSTALL_PREFIX ${INSTALL_PREFIX} PARENT_SCOPE) | ||
set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} PARENT_SCOPE) | ||
set(INSTALL_PREFIX_DOCS ${INSTALL_PREFIX_DOCS} PARENT_SCOPE) | ||
|
||
message("-- Installation path is ${CMAKE_INSTALL_PREFIX}") | ||
if (INSTALL_DOCS STREQUAL "ON") | ||
message("-- Installation path for documentation is ${INSTALL_PREFIX_DOCS}") | ||
else() | ||
message("-- Disabled installation of documentation") | ||
endif() | ||
endfunction() |
Oops, something went wrong.