60 lines
1.8 KiB
CMake
60 lines
1.8 KiB
CMake
# FreeRDP: A Remote Desktop Protocol Client
|
|
# FreeRDP cmake build script
|
|
#
|
|
# Copyright 2011 O.S. Systems Software Ltda.
|
|
# Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
|
|
# Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
project(FreeRDP C)
|
|
set(CMAKE_COLOR_MAKEFILE ON)
|
|
|
|
# Include our extra modules
|
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
|
|
|
|
include(AutoVersioning)
|
|
|
|
# Soname versioning - 0.0.0 since it is not being managed yet
|
|
set(FREERDP_VERSION_MAJOR "0")
|
|
set(FREERDP_VERSION_MINOR "0")
|
|
set(FREERDP_VERSION_PATCH "0")
|
|
set(FREERDP_VERSION "${FREERDP_VERSION_MAJOR}.${FREERDP_VERSION_MINOR}")
|
|
set(FREERDP_VERSION_FULL "${FREERDP_VERSION}.${FREERDP_VERSION_PATCH}")
|
|
|
|
# Default to release build type
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE "Release")
|
|
endif()
|
|
|
|
# Path to put keymaps
|
|
set(FREERDP_KEYMAP_PATH "${CMAKE_INSTALL_PREFIX}/freerdp/keymaps")
|
|
|
|
# Build CUnit
|
|
find_package(CUnit)
|
|
if(CUNIT_FOUND)
|
|
add_subdirectory(cunit)
|
|
endif()
|
|
|
|
# Libraries
|
|
add_subdirectory(include)
|
|
add_subdirectory(libfreerdp-asn1)
|
|
add_subdirectory(libfreerdp-utils)
|
|
add_subdirectory(libfreerdp-kbd)
|
|
add_subdirectory(libfreerdp-gdi)
|
|
|
|
add_subdirectory(libfreerdp-core)
|
|
|
|
add_subdirectory(freerdp-ui)
|