Add tests for J1939 features.
[apps/agl-service-can-low-level.git] / test / afb-test / etc / CMakeLists.txt
1 ###########################################################################
2 # Copyright 2015 - 2018 IoT.bzh
3 #
4 # author: Romain Forlot <romain.forlot@iot.bzh>
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #     http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 ###########################################################################
18
19 ##################################################
20 # Low-CAN test configuration files
21 ##################################################
22 PROJECT_TARGET_ADD(afb-test-config)
23         if(WITH_FEATURE_J1939)
24                 set(J1939_TEST_CONFFILE ",\"low-can_J1939Test.lua\"")
25         endif()
26
27         configure_file("aft-agl-service-low-can.json.in" "aft-agl-service-low-can.json")
28         file(GLOB CONF_FILES "${CMAKE_CURRENT_BINARY_DIR}/*.json")
29
30         add_input_files("${CONF_FILES}")
31
32         SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
33         LABELS "TEST-CONFIG"
34         OUTPUT_NAME ${TARGET_NAME}
35         )