339ace26c50a1240f3e0f9d36569d72d6f804ded
[platform/upstream/freerdp.git] / libfreerdp-rfx / CMakeLists.txt
1 # FreeRDP: A Remote Desktop Protocol Client
2 # libfreerdp-core cmake build script
3 #
4 # Copyright 2011 O.S. Systems Software Ltda.
5 # Copyright 2011 Otavio Salvador <otavio@ossystems.com.br>
6 # Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
7 #
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 #     http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19
20 set(LIBFREERDP_RFX_SRCS
21         rfx_bitstream.c
22         rfx_bitstream.h
23         rfx_constants.h
24         rfx_decode.c
25         rfx_decode.h
26         rfx_differential.c
27         rfx_differential.h
28         rfx_dwt.c
29         rfx_dwt.h
30         rfx_encode.c
31         rfx_encode.h
32         rfx_pool.c
33         rfx_pool.h
34         rfx_quantization.c
35         rfx_quantization.h
36         rfx_rlgr.c
37         rfx_rlgr.h
38         rfx_types.h
39         librfx.c
40 )
41
42 add_library(freerdp-rfx SHARED ${LIBFREERDP_RFX_SRCS})
43
44 set_target_properties(freerdp-rfx PROPERTIES VERSION ${FREERDP_VERSION_FULL} SOVERSION ${FREERDP_VERSION} PREFIX "lib")
45
46 target_link_libraries(freerdp-rfx freerdp-utils)
47
48 if(WITH_SSE2)
49         include_directories(sse2)
50         add_subdirectory(sse2)
51         target_link_libraries(freerdp-rfx freerdp-rfx-sse2)
52 endif()
53
54 install(TARGETS freerdp-rfx DESTINATION lib)