Files
Crosspoint/test/CMakeLists.txt
T
Justin Mitchell 78c71f1c77 Extract book cover utilities into BookCoverUtils
Refactors book cover and metadata handling out of Epub class into a dedicated BookCoverUtils utility. Moves FootnoteEntry struct into reader activity directory. Simplifies cache clearing to use direct storage operations instead of Epub class.
2026-07-08 01:31:24 -04:00

47 lines
1.1 KiB
CMake

cmake_minimum_required(VERSION 3.16)
project(crosspoint_reader_tests CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG v1.17.0
)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
set(BUILD_GMOCK OFF CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
set(REPO_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/..")
add_library(crosspoint_test_common INTERFACE)
target_include_directories(crosspoint_test_common INTERFACE
${REPO_ROOT}
${REPO_ROOT}/lib
)
target_compile_options(crosspoint_test_common INTERFACE
-Wall
-Wextra
-pedantic
)
enable_testing()
include(GoogleTest)
add_subdirectory(streaming_json_parser)
add_subdirectory(release_json_parser)
add_subdirectory(differential_rounding)
add_subdirectory(utf8_compose)
add_subdirectory(cpfont_adapter)
add_subdirectory(book_xpath)