Warning, /education/labplot/src/3rdparty/Qt-Advanced-Docking-System/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.5) 0002 0003 # By default, the version information is extracted from the git index. However, 0004 # we can override this behavior by explicitly setting ADS_VERSION and 0005 # skipping the git checks. This is useful for cases where this project is being 0006 # used independently of its original git repo (e.g. vendored in another project) 0007 if(NOT ADS_VERSION) 0008 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH}) 0009 include(GetGitRevisionDescription) 0010 git_describe(GitTagVersion --tags) 0011 string(REGEX REPLACE "^([0-9]+)\\..*" "\\1" VERSION_MAJOR "${GitTagVersion}") 0012 string(REGEX REPLACE "^[0-9]+\\.([0-9]+).*" "\\1" VERSION_MINOR "${GitTagVersion}") 0013 string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" VERSION_PATCH "${GitTagVersion}") 0014 set(VERSION_SHORT "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}") 0015 else() 0016 string(REGEX MATCHALL "[\.]" VERSION_DOT_MATCHES ${ADS_VERSION}) 0017 list(LENGTH VERSION_DOT_MATCHES VERSION_DOT_COUNT) 0018 if(VERSION_DOT_COUNT EQUAL 2) 0019 set(VERSION_SHORT ${ADS_VERSION}) 0020 else() 0021 message(FATAL_ERROR "ADS_VERSION must be in major.minor.patch format, e.g. 3.8.1. Got ${ADS_VERSION}") 0022 endif() 0023 endif() 0024 0025 0026 project(QtADS LANGUAGES CXX VERSION ${VERSION_SHORT}) 0027 0028 option(BUILD_STATIC "Build the static library" OFF) 0029 option(BUILD_EXAMPLES "Build the examples" ON) 0030 0031 if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4") 0032 set(ads_PlatformDir "x86") 0033 else() 0034 set(ads_PlatformDir "x64") 0035 endif() 0036 0037 add_subdirectory(src) 0038 0039 if(BUILD_EXAMPLES) 0040 add_subdirectory(examples) 0041 add_subdirectory(demo) 0042 endif() 0043