FreeRDP
CMakeLists.txt File Reference

Functions

 cmake_minimum_required (VERSION 2.8) project(FreeRDP C CXX) if(NOT DEFINED VENDOR) set(VENDOR "FreeRDP" CACHE STRING "FreeRDP package vendor") endif() if(NOT DEFINED PRODUCT) set(PRODUCT "FreeRDP" CACHE STRING "FreeRDP package name") endif() if(NOT DEFINED FREERDP_VENDOR) set(FREERDP_VENDOR 1) endif() set(CMAKE_COLOR_MAKEFILE ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_MODULE_PATH $
 
cmake if ((CMAKE_SYSTEM_NAME MATCHES "WindowsStore") AND(CMAKE_SYSTEM_VERSION MATCHES "10.0")) set(UWP 1) add_definitions("-D_UWP") set(CMAKE_WINDOWS_VERSION "WIN10") endif() include(CheckCmakeCompat) if(WITH_CLANG_FORMAT) include(ClangFormat) endif() include(CheckIncludeFiles) include(CheckLibraryExists) include(CheckSymbolExists) include(CheckStructHasMember) include(FindPkgConfig) include(TestBigEndian) include(FindFeature) include(ConfigOptions) include(ComplexLibrary) include(FeatureSummary) include(CheckCCompilerFlag) include(CheckCXXCompilerFlag) include(GNUInstallDirsWrapper) include(CMakePackageConfigHelpers) include(InstallFreeRDPMan) include(GetGitRevisionDescription) include(SetFreeRDPCMakeInstallDir) set(BUILD_NUMBER 0) if($ENV
 
 set (BUILD_NUMBER $ENV{BUILD_NUMBER}) endif() set(WITH_LIBRARY_VERSIONING "ON") set(RAW_VERSION_STRING "3.0.0-dev") if(EXISTS "$
 
source_tag file (READ ${CMAKE_SOURCE_DIR}/.source_tag RAW_VERSION_STRING) elseif(USE_VERSION_FROM_GIT_TAG) git_get_exact_tag(_GIT_TAG --tags --always) if(NOT $
 
STREQUAL n a set (RAW_VERSION_STRING ${_GIT_TAG}) endif() endif() string(STRIP $
 
RAW_VERSION_STRING set (VERSION_REGEX "^.?([0-9]+)\\.([0-9]+)\\.([0-9]+)-?(.*)") string(REGEX REPLACE "$
 
please use BUILTIN_CHANNELS instead set (BUILTIN_CHANNELS ${STATIC_CHANNELS} CACHE BOOL "" FORCE) endif() if(CMAKE_INSTALL_PREFIX) get_filename_component(CMAKE_INSTALL_PREFIX "$
 
ABSOLUTE endif () if(FREERDP_EXTERNAL_PATH) get_filename_component(FREERDP_EXTERNAL_PATH "$
 
 set_property (GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE}) endif() endif(CCACHE AND WITH_CCACHE) if(EXISTS "$
 
source_version file (READ ${CMAKE_SOURCE_DIR}/.source_version GIT_REVISION) string(STRIP $
 
GIT_REVISION else () git_get_exact_tag(GIT_REVISION --tags --always) if($
 
STREQUAL n a git_rev_parse (GIT_REVISION --short) endif() endif() if(CMAKE_CROSSCOMPILING) endif(CMAKE_CROSSCOMPILING) message(STATUS "Git Revision $
 
 set_property (GLOBAL PROPERTY USE_FOLDERS ON) if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") endif() if(NOT DEFINED BUILD_SHARED_LIBS) if(IOS) set(BUILD_SHARED_LIBS OFF) else() set(BUILD_SHARED_LIBS ON) endif() endif() if(BUILD_TESTING) set(EXPORT_ALL_SYMBOLS TRUE) set(CTEST_OUTPUT_ON_FAILURE TRUE) elseif(NOT DEFINED EXPORT_ALL_SYMBOLS) set(EXPORT_ALL_SYMBOLS FALSE) endif() if(EXPORT_ALL_SYMBOLS) add_definitions(-DFREERDP_TEST_EXPORTS -DBUILD_TESTING) endif(EXPORT_ALL_SYMBOLS) if($
 
MATCHES BSD set (BSD TRUE) if($
 
MATCHES FreeBSD set (FREEBSD TRUE) endif() if($
 
MATCHES kFreeBSD set (KFREEBSD TRUE) endif() if($
 
MATCHES OpenBSD set (OPENBSD TRUE) endif() endif() if($
 
MATCHES DragonFly and is very picky message (STATUS "Random freeing errors are a common sign of runtime issues") endif() configure_msvc_runtime() if(NOT DEFINED CMAKE_SUPPRESS_REGENERATION) set(CMAKE_SUPPRESS_REGENERATION ON) endif() endif() if("$
 
MATCHES Linux OR FREEBSD add_definitions ("-D_FILE_OFFSET_BITS=64") endif() if("$
 
MATCHES SunOS add_definitions ("-D_POSIX_PTHREAD_SEMANTICS") endif() if(CMAKE_COMPILER_IS_GNUCC) if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64" OR CMAKE_SYSTEM_PROCESSOR MATCHES "i686") if(IS_X86_64) set(CMAKE_C_FLAGS "$
 

Variables

 FREERDP_VERSION_MAJOR
 

Function Documentation

◆ add_definitions() [1/2]

MATCHES Linux OR FREEBSD add_definitions ( )

◆ add_definitions() [2/2]

MATCHES SunOS add_definitions ( "-D_POSIX_PTHREAD_SEMANTICS"  )

◆ cmake_minimum_required()

cmake_minimum_required ( VERSION 2.  8)

◆ else()

fPIC else ( )

◆ endif()

ABSOLUTE endif ( )

◆ file() [1/2]

source_tag file ( READ ${CMAKE_SOURCE_DIR}/.source_tag  RAW_VERSION_STRING)

◆ file() [2/2]

source_version file ( READ ${CMAKE_SOURCE_DIR}/.source_version  GIT_REVISION)

◆ git_rev_parse()

STREQUAL n a git_rev_parse ( GIT_REVISION -- short  )

◆ if()

cmake if ( (CMAKE_SYSTEM_NAME MATCHES "WindowsStore") AND(CMAKE_SYSTEM_VERSION MATCHES "10.0")  )

◆ message()

MATCHES DragonFly and is very picky message ( STATUS "Random freeing errors are a common sign of runtime issues"  )

◆ set() [1/8]

MATCHES DragonFly set ( BSD  TRUE)

◆ set() [2/8]

set ( BUILD_NUMBER $ENV{BUILD_NUMBER}  )

◆ set() [3/8]

please use BUILTIN_CHANNELS instead set ( BUILTIN_CHANNELS ${STATIC_CHANNELS} CACHE BOOL ""  FORCE)

◆ set() [4/8]

MATCHES FreeBSD set ( FREEBSD  TRUE)

◆ set() [5/8]

MATCHES kFreeBSD set ( KFREEBSD  TRUE)

◆ set() [6/8]

MATCHES OpenBSD set ( OPENBSD  TRUE)

◆ set() [7/8]

STREQUAL n a set ( RAW_VERSION_STRING ${_GIT_TAG}  )

◆ set() [8/8]

RAW_VERSION_STRING set ( VERSION_REGEX "^.?([0-9]+)\\.([0-9]+)\\.([0-9]+)-?(.*)"  )

◆ set_property() [1/2]

set_property ( GLOBAL PROPERTY RULE_LAUNCH_LINK ${CCACHE}  )

◆ set_property() [2/2]

set_property ( GLOBAL PROPERTY USE_FOLDERS  ON)

Variable Documentation

◆ FREERDP_VERSION_MAJOR

FREERDP_VERSION_MAJOR
Initial value:
{RAW_VERSION_STRING}")
string(REGEX REPLACE "${VERSION_REGEX}" "\\2" FREERDP_VERSION_MINOR "${RAW_VERSION_STRING}")
string(REGEX REPLACE "${VERSION_REGEX}" "\\3" FREERDP_VERSION_REVISION "${RAW_VERSION_STRING}")
string(REGEX REPLACE "${VERSION_REGEX}" "\\4" FREERDP_VERSION_SUFFIX "${RAW_VERSION_STRING}")
set(FREERDP_API_VERSION "${FREERDP_VERSION_MAJOR}")
set(FREERDP_VERSION "${FREERDP_VERSION_MAJOR}.${FREERDP_VERSION_MINOR}.${FREERDP_VERSION_REVISION}")
if (FREERDP_VERSION_SUFFIX)
set(FREERDP_VERSION_FULL "${FREERDP_VERSION}-${FREERDP_VERSION_SUFFIX}")
else()
set(FREERDP_VERSION_FULL "${FREERDP_VERSION}")
endif()
message("FREERDP_VERSION=${FREERDP_VERSION_FULL}")
set(FREERDP_INCLUDE_DIR "include/freerdp${FREERDP_VERSION_MAJOR}/")
if(DEFINED STATIC_CHANNELS)
message(WARNING "STATIC_CHANNELS is obsolete
FREERDP_VERSION_MAJOR
FREERDP_VERSION_MAJOR
Definition: CMakeLists.txt:96
include
cmake include(CheckCmakeCompat) include(FindFeature) include(ConfigOptions) include(CheckCCompilerFlag) include(GNUInstallDirsWrapper) include(CMakePackageConfigHelpers) if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release") endif() if(NOT DEFINED BUILD_SHARED_LIBS) set(BUILD_SHARED_LIBS ON) endif() set(CMAKE_C_FLAGS "$
Definition: rdtk/CMakeLists.txt:35