PulseView  unreleased development snapshot
A Qt-based sigrok GUI
CMakeLists.txt File Reference

Functions

 cmake_minimum_required (VERSION 2.8.12) project(pulseview C CXX) include(GNUInstallDirs) if(POLICY CMP0071) cmake_policy(SET CMP0071 NEW) endif() if(POLICY CMP0054) cmake_policy(SET CMP0054 NEW) endif() list(APPEND CMAKE_MODULE_PATH"$
 
CMake option (DISABLE_WERROR"Build without -Werror"TRUE) option(ENABLE_SIGNALS"Build with UNIX signals"TRUE) option(ENABLE_STACKTRACE"Enable stack trace when crashing"FALSE) option(ENABLE_DECODE"Build with libsigrokdecode"TRUE) option(ENABLE_FLOW"Build with libsigrokflow"FALSE) option(ENABLE_TESTS"Enable unit tests"FALSE) option(STATIC_PKGDEPS_LIBS"Statically link to (pkg-config) libraries"FALSE) option(ENABLE_TS_UPDATE"Update .ts source files (Qt l10n)"FALSE) if(WIN32) set(STATIC_PKGDEPS_LIBS TRUE) set(ENABLE_SIGNALS FALSE) endif() if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING"Choose the type of build (None
 
CMake MinSizeRel FORCE endif () add_subdirectory(manual) include(CheckCSourceCompiles) include(CheckCXXCompilerFlag) include(CheckCXXSourceCompiles) include(CMakePushCheckState) include(memaccess) find_package(PkgConfig) if(CMAKE_VERSION VERSION_EQUAL"3.8.0"OR CMAKE_VERSION VERSION_GREATER"3.8.0") check_cxx_compiler_flag("-std
 

Variables

CMake Debug
 
CMake Release
 
CMake RelWithDebInfo
 

Function Documentation

cmake_minimum_required ( VERSION 2.8.  12)

Definition at line 22 of file CMakeLists.txt.

CMake MinSizeRel FORCE at least language standard endif ( )
Initial value:
=c++14" HAVE_STD_CXX_14)
check_cxx_compiler_flag("-std=c++11" HAVE_STD_CXX_11)
if(HAVE_STD_CXX_14)
message(STATUS "Using C++14 for the application build")
set(CMAKE_CXX_STANDARD 14)
set(REQUIRED_STD_CXX_FLAGS "-std=c++14")
elseif(HAVE_STD_CXX_11)
message(STATUS "Using C++11 for the application build")
set(CMAKE_CXX_STANDARD 11)
set(REQUIRED_STD_CXX_FLAGS "-std=c++11")
else()
message(FATAL_ERROR "Need modern C++
STL namespace.

Here is the caller graph for this function:

CMake option ( DISABLE_WERROR"Build without -Werror"  TRUE)

Here is the caller graph for this function:

Variable Documentation

CMake Debug

Definition at line 64 of file CMakeLists.txt.

CMake Release

Definition at line 64 of file CMakeLists.txt.

CMake RelWithDebInfo

Definition at line 64 of file CMakeLists.txt.