5d3eac20d293f9b07e34890140ea3e93ff335df4
[ric-app/ts.git] / test / app / CMakeLists.txt
1 # ==================================================================================
2 #       Copyright (c) 2021 AT&T Intellectual Property.
3 #       Copyright (c) 2021 Alexandre Huff.
4 #
5 #    Licensed under the Apache License, Version 2.0 (the "License");
6 #    you may not use this file except in compliance with the License.
7 #    You may obtain a copy of the License at
8 #
9 #        http://www.apache.org/licenses/LICENSE-2.0
10 #
11 #    Unless required by applicable law or agreed to in writing, software
12 #    distributed under the License is distributed on an "AS IS" BASIS,
13 #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 #    See the License for the specific language governing permissions and
15 #    limitations under the License.
16 # ==================================================================================
17 #
18 #       Date:     20 May 2021
19 #       Author:   Alexandre Huff
20
21
22 cmake_minimum_required(VERSION 3.14)
23 project(test_apps)
24 set(CMAKE_CXX_STANDARD 11)
25
26 add_executable(
27   ad_xapp
28   ad_xapp.cpp
29 )
30 target_link_libraries(
31   ad_xapp
32   ricxfcpp
33   rmr_si
34   pthread
35   curl
36 )
37
38 add_executable(
39   qp_xapp
40   qp_xapp.cpp
41 )
42 target_link_libraries(
43   qp_xapp
44   ricxfcpp
45   rmr_si
46   pthread
47   curl
48 )
49
50 find_package(Protobuf REQUIRED)
51 add_subdirectory(${CMAKE_SOURCE_DIR}/../../ext/protobuf EXCLUDED_FROM_ALL)
52 add_executable(
53   rc_xapp
54   rc_xapp.cpp
55 )
56 target_link_libraries(
57   rc_xapp
58   rc-api
59   grpc++
60   ${Protobuf_LIBRARY}
61 )