373a6f5df18f90a8d5f558a0a2d16497087d9e96
[src/xds/xds-server.git] / test / fixtures / helloworld / helloworld / CMakeLists.txt
1 ###########################################################################
2 # Copyright 2015, 2016, 2017 IoT.bzh
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 ###########################################################################
16
17 # Add target to project dependency list
18 PROJECT_TARGET_ADD(helloworld)
19
20     # Define project Targets
21     file(GLOB sourcelist "*.c")
22
23     # Define project Targets
24     ADD_LIBRARY(${TARGET_NAME} MODULE ${sourcelist})
25
26     # Binder exposes a unique public entry point
27     SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
28         PREFIX ""
29         LABELS "BINDING"
30         LINK_FLAGS  ${BINDINGS_LINK_FLAG}
31         OUTPUT_NAME ${TARGET_NAME}
32     )
33
34     TARGET_LINK_LIBRARIES(${TARGET_NAME}
35             ${link_libraries}
36     )