2012-10-09 07:02:04 +04:00
|
|
|
# FreeRDP: A Remote Desktop Protocol Implementation
|
2011-07-02 21:58:55 +04:00
|
|
|
# libfreerdp-core cmake build script
|
|
|
|
#
|
2012-08-13 06:16:26 +04:00
|
|
|
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
2011-07-02 21:58:55 +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.
|
2011-07-01 06:20:39 +04:00
|
|
|
|
2012-10-01 06:58:59 +04:00
|
|
|
set(MODULE_NAME "freerdp-core")
|
|
|
|
set(MODULE_PREFIX "FREERDP_CORE")
|
|
|
|
|
2012-07-03 11:51:00 +04:00
|
|
|
add_definitions(-DEXT_PATH="${FREERDP_EXTENSION_PATH}")
|
2012-02-21 09:56:55 +04:00
|
|
|
|
2011-07-31 05:22:09 +04:00
|
|
|
include_directories(${OPENSSL_INCLUDE_DIR})
|
|
|
|
include_directories(${ZLIB_INCLUDE_DIRS})
|
2011-07-01 06:20:39 +04:00
|
|
|
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_SRCS
|
2011-07-25 21:52:48 +04:00
|
|
|
activation.c
|
|
|
|
activation.h
|
2011-11-10 00:33:58 +04:00
|
|
|
extension.c
|
|
|
|
extension.h
|
2011-07-05 01:05:58 +04:00
|
|
|
gcc.c
|
|
|
|
gcc.h
|
2011-07-04 06:47:35 +04:00
|
|
|
mcs.c
|
|
|
|
mcs.h
|
2011-07-03 20:42:35 +04:00
|
|
|
nego.c
|
|
|
|
nego.h
|
2011-07-12 02:46:36 +04:00
|
|
|
info.c
|
|
|
|
info.h
|
2012-04-14 22:19:31 +04:00
|
|
|
http.c
|
|
|
|
http.h
|
|
|
|
rpc.c
|
|
|
|
rpc.h
|
2012-04-19 22:09:27 +04:00
|
|
|
rts.c
|
|
|
|
rts.h
|
2011-07-28 04:14:12 +04:00
|
|
|
input.c
|
|
|
|
input.h
|
2011-07-12 04:46:03 +04:00
|
|
|
license.c
|
|
|
|
license.h
|
2011-08-08 07:59:28 +04:00
|
|
|
errinfo.c
|
|
|
|
errinfo.h
|
2011-07-12 02:46:36 +04:00
|
|
|
security.c
|
|
|
|
security.h
|
2011-07-07 21:37:48 +04:00
|
|
|
settings.c
|
2011-07-25 09:45:25 +04:00
|
|
|
orders.c
|
|
|
|
orders.h
|
2011-07-28 08:38:25 +04:00
|
|
|
freerdp.c
|
2011-10-21 01:28:59 +04:00
|
|
|
graphics.c
|
2011-07-20 00:30:05 +04:00
|
|
|
capabilities.c
|
|
|
|
capabilities.h
|
2011-07-13 02:18:24 +04:00
|
|
|
certificate.c
|
|
|
|
certificate.h
|
2011-07-10 09:48:10 +04:00
|
|
|
connection.c
|
|
|
|
connection.h
|
2011-07-12 04:46:03 +04:00
|
|
|
redirection.c
|
|
|
|
redirection.h
|
2012-02-16 10:53:58 +04:00
|
|
|
timezone.c
|
|
|
|
timezone.h
|
2011-07-10 23:34:43 +04:00
|
|
|
rdp.c
|
|
|
|
rdp.h
|
2011-07-03 23:34:15 +04:00
|
|
|
tcp.c
|
|
|
|
tcp.h
|
2012-03-26 10:45:01 +04:00
|
|
|
tsg.c
|
|
|
|
tsg.h
|
2011-07-03 01:10:10 +04:00
|
|
|
tpdu.c
|
|
|
|
tpdu.h
|
2011-07-02 22:40:03 +04:00
|
|
|
tpkt.c
|
|
|
|
tpkt.h
|
2011-08-01 20:19:39 +04:00
|
|
|
fastpath.c
|
|
|
|
fastpath.h
|
2011-08-23 17:01:19 +04:00
|
|
|
surface.c
|
|
|
|
surface.h
|
2011-07-03 06:59:07 +04:00
|
|
|
transport.c
|
|
|
|
transport.h
|
2011-07-25 09:45:25 +04:00
|
|
|
update.c
|
|
|
|
update.h
|
2011-10-16 08:50:10 +04:00
|
|
|
channel.c
|
|
|
|
channel.h
|
2011-08-09 10:32:50 +04:00
|
|
|
window.c
|
|
|
|
window.h
|
2011-08-18 12:06:32 +04:00
|
|
|
listener.c
|
|
|
|
listener.h
|
|
|
|
peer.c
|
2012-08-13 06:16:26 +04:00
|
|
|
peer.h)
|
2011-07-01 06:20:39 +04:00
|
|
|
|
2012-10-09 06:55:06 +04:00
|
|
|
if(MONOLITHIC_BUILD)
|
2012-10-01 06:58:59 +04:00
|
|
|
add_library(${MODULE_NAME} OBJECT ${${MODULE_PREFIX}_SRCS})
|
2012-08-14 06:53:26 +04:00
|
|
|
else()
|
2012-10-01 06:58:59 +04:00
|
|
|
add_library(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
2012-08-14 06:53:26 +04:00
|
|
|
endif()
|
2011-07-01 06:20:39 +04:00
|
|
|
|
2012-10-01 06:58:59 +04:00
|
|
|
set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION} PREFIX "lib")
|
2011-08-17 07:54:42 +04:00
|
|
|
|
2012-10-09 06:55:06 +04:00
|
|
|
if(MONOLITHIC_BUILD)
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_LIBS winpr)
|
2012-08-14 22:37:31 +04:00
|
|
|
else()
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_LIBS
|
2012-10-09 07:42:01 +04:00
|
|
|
winpr-registry
|
2012-08-14 22:37:31 +04:00
|
|
|
winpr-utils
|
2012-10-09 07:42:01 +04:00
|
|
|
winpr-sspi
|
|
|
|
winpr-crt)
|
2012-08-14 22:37:31 +04:00
|
|
|
endif()
|
2012-08-13 06:16:26 +04:00
|
|
|
|
2011-08-17 01:40:29 +04:00
|
|
|
if(WIN32)
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} ws2_32)
|
2011-08-17 01:40:29 +04:00
|
|
|
else()
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} ${ZLIB_LIBRARIES})
|
2011-08-17 01:40:29 +04:00
|
|
|
endif()
|
|
|
|
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} ${OPENSSL_LIBRARIES})
|
2012-08-13 06:16:26 +04:00
|
|
|
|
2012-10-09 06:55:06 +04:00
|
|
|
if(MONOLITHIC_BUILD)
|
2012-10-01 06:58:59 +04:00
|
|
|
set(FREERDP_LIBS ${FREERDP_LIBS} ${${MODULE_PREFIX}_LIBS} PARENT_SCOPE)
|
2012-08-14 06:53:26 +04:00
|
|
|
else()
|
2012-10-01 06:58:59 +04:00
|
|
|
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS}
|
2012-08-14 06:53:26 +04:00
|
|
|
freerdp-utils
|
|
|
|
freerdp-codec
|
|
|
|
freerdp-crypto
|
|
|
|
freerdp-locale)
|
|
|
|
|
2012-10-01 06:58:59 +04:00
|
|
|
target_link_libraries(${MODULE_NAME} ${${MODULE_PREFIX}_LIBS})
|
|
|
|
install(TARGETS ${MODULE_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
2012-08-14 06:53:26 +04:00
|
|
|
endif()
|
2012-10-01 06:58:59 +04:00
|
|
|
|
2012-10-04 17:42:23 +04:00
|
|
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "FreeRDP/libfreerdp")
|