|
| 1 | +# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"). |
| 4 | +# You may not use this file except in compliance with the License. |
| 5 | +# A copy of the License is located at |
| 6 | +# |
| 7 | +# http://aws.amazon.com/apache2.0/ |
| 8 | +# |
| 9 | +# or in the "license" file accompanying this file. This file is distributed |
| 10 | +# on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
| 11 | +# express or implied. See the License for the specific language governing |
| 12 | +# permissions and limitations under the License. |
| 13 | + |
| 14 | +include_directories(../aplcore/include) |
| 15 | +include_directories(${RAPIDJSON_INCLUDE}) |
| 16 | +include_directories(${PEGTL_INCLUDE}) |
| 17 | +include_directories(${YOGA_INCLUDE}) |
| 18 | + |
| 19 | +if(COVERAGE) |
| 20 | + set(CMAKE_CXX_FLAGS "--coverage") |
| 21 | +endif(COVERAGE) |
| 22 | + |
| 23 | +# Google testing |
| 24 | +add_executable( perftest |
| 25 | + perftest_base.cpp |
| 26 | + perftest_load.cpp |
| 27 | + perftest_operation.cpp |
| 28 | + perftest_visual_context.cpp |
| 29 | + ) |
| 30 | + |
| 31 | +configure_file(basic.json basic.json COPYONLY) |
| 32 | +configure_file(basic_data.json basic_data.json COPYONLY) |
| 33 | + |
| 34 | +configure_file(complex-list.json complex-list.json COPYONLY) |
| 35 | +configure_file(complex-list_data.json complex-list_data.json COPYONLY) |
| 36 | + |
| 37 | +configure_file(hello-world.json hello-world.json COPYONLY) |
| 38 | +configure_file(hello-world_data.json hello-world_data.json COPYONLY) |
| 39 | + |
| 40 | +configure_file(simple-import.json simple-import.json COPYONLY) |
| 41 | +configure_file(alexa-styles.json alexa-styles.json COPYONLY) |
| 42 | +configure_file(alexa-viewport-profiles.json alexa-viewport-profiles.json COPYONLY) |
| 43 | +configure_file(alexa-layouts.json alexa-layouts.json COPYONLY) |
| 44 | + |
| 45 | +target_link_libraries(perftest apl gtest_main) |
| 46 | +target_link_libraries(perftest libyoga) |
0 commit comments