2012-10-09 07:02:04 +04:00
|
|
|
# FreeRDP: A Remote Desktop Protocol Implementation
|
2012-10-01 19:48:53 +04:00
|
|
|
# FreeRDP Sample UI cmake build script
|
2011-07-03 20:42:35 +04:00
|
|
|
#
|
2012-10-01 19:48:53 +04:00
|
|
|
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
2011-07-03 20:42:35 +04:00
|
|
|
#
|
|
|
|
# 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.
|
2023-05-25 16:20:00 +03:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
2011-07-03 20:42:35 +04:00
|
|
|
|
2024-02-13 17:48:33 +03:00
|
|
|
if(POLICY CMP0091)
|
|
|
|
cmake_policy(SET CMP0091 NEW)
|
|
|
|
endif()
|
2023-12-21 19:24:43 +03:00
|
|
|
if (NOT FREERDP_DEFAULT_PROJECT_VERSION)
|
|
|
|
set(FREERDP_DEFAULT_PROJECT_VERSION "1.0.0.0")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
project(sfreerdp
|
|
|
|
LANGUAGES C
|
|
|
|
VERSION ${FREERDP_DEFAULT_PROJECT_VERSION}
|
|
|
|
)
|
|
|
|
|
|
|
|
message("project ${PROJECT_NAME} is using version ${PROJECT_VERSION}")
|
2012-10-01 19:48:53 +04:00
|
|
|
|
2023-05-25 16:20:00 +03:00
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
|
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
|
|
|
set(CMAKE_C_EXTENSIONS ON)
|
|
|
|
|
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/)
|
2023-12-21 11:27:19 +03:00
|
|
|
include(CommonConfigOptions)
|
2023-08-03 10:45:43 +03:00
|
|
|
|
2023-05-25 16:25:06 +03:00
|
|
|
include(ConfigureFreeRDP)
|
2023-05-25 16:20:00 +03:00
|
|
|
|
|
|
|
set(SRCS
|
2018-11-22 12:22:40 +03:00
|
|
|
tf_channels.c
|
|
|
|
tf_channels.h
|
|
|
|
tf_freerdp.h
|
|
|
|
tf_freerdp.c)
|
2011-07-03 20:42:35 +04:00
|
|
|
|
2024-03-19 14:19:07 +03:00
|
|
|
AddTargetWithResourceFile(${PROJECT_NAME} TRUE "${PROJECT_VERSION}" SRCS)
|
2014-10-09 18:18:35 +04:00
|
|
|
|
2023-05-25 16:20:00 +03:00
|
|
|
set(LIBS
|
|
|
|
freerdp-client
|
|
|
|
freerdp
|
|
|
|
winpr
|
|
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE ${LIBS})
|
2012-10-01 19:48:53 +04:00
|
|
|
|
2023-05-25 16:20:00 +03:00
|
|
|
set_property(TARGET ${PROJECT_NAME} PROPERTY FOLDER "Client/Sample")
|
|
|
|
install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT client)
|