• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2018 Google LLC
2#
3# Licensed under the Apache License Version 2.0 (the License); you may not use
4# this file except in compliance with the License. You may obtain a copy of the
5# License at
6#
7# https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing software distributed
10# under the License is distributed on an AS IS BASIS WITHOUT WARRANTIES OR
11# CONDITIONS OF ANY KIND either express or implied. See the License for the
12# specific language governing permissions and limitations under the License.
13add_library(base INTERFACE)
14target_include_directories(base INTERFACE ../..)
15
16if(OPTION_ASTC_TESTS)
17  add_executable(base_test
18                 test/bit_stream_test.cpp
19                 test/bottom_n_test.cpp
20                 test/math_utils_test.cpp
21                 test/optional_test.cpp
22                 test/string_utils_test.cpp
23                 test/type_traits_test.cpp
24                 test/uint128_test.cpp)
25  target_link_libraries(base_test base gmock_main)
26  add_test(NAME base_test COMMAND base_test WORKING_DIRECTORY ${PROJECT_SOURCE_DIR})
27endif()
28