2012-08-14 07:19:51 +04:00
|
|
|
# FreeRDP: A Remote Desktop Protocol Client
|
|
|
|
# libfreerdp cmake build script
|
|
|
|
#
|
|
|
|
# Copyright 2012 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.
|
|
|
|
|
2012-08-14 07:50:50 +04:00
|
|
|
if(WITH_MONOLITHIC_BUILD)
|
|
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|
|
|
endif()
|
|
|
|
|
2012-10-04 03:29:28 +04:00
|
|
|
set(FREERDP_MODULES
|
|
|
|
utils
|
|
|
|
gdi
|
|
|
|
rail
|
|
|
|
cache
|
|
|
|
codec
|
|
|
|
crypto
|
|
|
|
channels
|
|
|
|
locale
|
|
|
|
core)
|
|
|
|
|
|
|
|
foreach(FREERDP_MODULE ${FREERDP_MODULES})
|
|
|
|
add_subdirectory(${FREERDP_MODULE})
|
|
|
|
endforeach()
|
2012-08-14 07:19:51 +04:00
|
|
|
|
2012-08-14 07:50:50 +04:00
|
|
|
if(WITH_MONOLITHIC_BUILD)
|
2012-08-15 03:04:45 +04:00
|
|
|
|
2012-10-04 03:29:28 +04:00
|
|
|
foreach(FREERDP_MODULE ${FREERDP_MODULES})
|
|
|
|
set(FREERDP_OBJECTS ${FREERDP_OBJECTS} "$<TARGET_OBJECTS:freerdp-${FREERDP_MODULE}>")
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
add_library(freerdp ${FREERDP_OBJECTS})
|
2012-08-15 03:04:45 +04:00
|
|
|
set_target_properties(freerdp PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION} PREFIX "lib")
|
2012-08-15 03:55:48 +04:00
|
|
|
|
2012-08-14 08:31:06 +04:00
|
|
|
target_link_libraries(freerdp ${FREERDP_LIBS})
|
2012-08-15 03:55:48 +04:00
|
|
|
install(TARGETS freerdp DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
2012-08-14 07:50:50 +04:00
|
|
|
endif()
|
2012-08-14 08:31:06 +04:00
|
|
|
|
2012-10-04 17:42:23 +04:00
|
|
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "FreeRDP/libfreerdp")
|