Skip to content
Snippets Groups Projects
Commit d80ea247 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

Merge remote-tracking branch 'project-template/master'

parents 0c81a4e9 db66171e
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@ build
.project
.kdev4
*.kdev4
.vscode
CMakeLists.txt.user
#files ending with ~ are emacs backups
*~
#files ending with .swp might show up when using vi
......
......@@ -3,11 +3,11 @@ find_path( readline_ROOT_DIR NAMES include/readline/readline.h )
# Search for include directory
find_path( readline_INCLUDE_DIR NAMES readline/readline.h
HINTS ${Readline_ROOT_DIR}/include )
HINTS ${readline_ROOT_DIR}/include )
# Search for library
find_library( readline_LIBRARY NAMES readline
HINTS ${Readline_ROOT_DIR}/lib )
HINTS ${readline_ROOT_DIR}/lib )
# use a macro provided by CMake to check if all the listed arguments are valid and set readline_FOUND accordingly
include(FindPackageHandleStandardArgs)
......
......@@ -47,6 +47,6 @@ FUNCTION(add_dependency dependency_project_name required_version)
SET(${dependency_project_name}_FOUND ${${dependency_project_name}_FOUND} PARENT_SCOPE)
SET(${dependency_project_name}_VERSION ${${dependency_project_name}_VERSION} PARENT_SCOPE)
SET(${dependency_project_name}_INCLUDE_DIRS ${${dependency_project_name}_INCLUDE_DIRS} PARENT_SCOPE)
SET(${dependency_project_name}_PREFIX ${${dependency_project_name}_PREFIX} PARENT_SCOPE)
ENDFUNCTION(add_dependency)
#######################################################################################################################
# enable_cxx11_support.cmake
#
# NOTE: Do not use this routine! Use enable_latest_css_support.cmake instead, even if you only need C++11, as the
# compiler always uses the strictest ("oldest") specified standard if mulitple flags are given. This will create
# problems when combining multiple projects (libraries...) requiring different C++ standards.
#
# Enable C++-11 support by selecting the appropriate compiler flag. The flag will be appended to all of the following
# cmake variables:
# - CMAKE_CXX_FLAGS
......
#######################################################################################################################
# enable_latest_cxx_support.cmake
#
# Enable the latest C++ standard supported by the compiler. by selecting the appropriate compiler flag. The flag will
# be appended to all of the following cmake variables:
# - CMAKE_CXX_FLAGS
# - ${PROJECT_NAME}_CXX_FLAGS
# - ${PROJECT_NAME}_CMAKE_CXX_FLAGS
#
#######################################################################################################################
#######################################################################################################################
#
# IMPORTANT NOTE:
#
# DO NOT MODIFY THIS FILE inside a project. Instead update the project-template repository and pull the change from
# there. Make sure to keep the file generic, since it will be used by other projects, too.
#
# If you have modified this file inside a project despite this warning, make sure to cherry-pick all your changes
# into the project-template repository immediately.
#
#######################################################################################################################
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)
CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(COMPILER_SUPPORTS_CXX17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
set(${PROJECT_NAME}_CXX_FLAGS "${${PROJECT_NAME}_CXX_FLAGS} -std=c++17")
set(${PROJECT_NAME}_CMAKE_CXX_FLAGS "${${PROJECT_NAME}_CMAKE_CXX_FLAGS} -std=c++17")
elseif(COMPILER_SUPPORTS_CXX14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
set(${PROJECT_NAME}_CXX_FLAGS "${${PROJECT_NAME}_CXX_FLAGS} -std=c++14")
set(${PROJECT_NAME}_CMAKE_CXX_FLAGS "${${PROJECT_NAME}_CMAKE_CXX_FLAGS} -std=c++14")
elseif(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(${PROJECT_NAME}_CXX_FLAGS "${${PROJECT_NAME}_CXX_FLAGS} -std=c++11")
set(${PROJECT_NAME}_CMAKE_CXX_FLAGS "${${PROJECT_NAME}_CMAKE_CXX_FLAGS} -std=c++11")
elseif(COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
set(${PROJECT_NAME}_CXX_FLAGS "${${PROJECT_NAME}_CXX_FLAGS} -std=c++0x")
set(${PROJECT_NAME}_CMAKE_CXX_FLAGS "${${PROJECT_NAME}_CMAKE_CXX_FLAGS} -std=c++0x")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()
doc/ChimeraTK_Logo_whitebg.png

9.76 KiB

doc/DESY_logo.png

6.99 KiB | W: | H:

doc/DESY_logo.png

8.58 KiB | W: | H:

doc/DESY_logo.png
doc/DESY_logo.png
doc/DESY_logo.png
doc/DESY_logo.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment