File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1+ # exclude tests from exported git archives
2+ TextExtractionTesting export-ignore
Original file line number Diff line number Diff line change @@ -10,17 +10,24 @@ option(SHOULD_PARSE_INTERNAL_TABLES "should table parsing read internal tables"
1010include (FetchContent )
1111FetchContent_Declare (
1212 PDFHummus
13- GIT_REPOSITORY https://github.com/galkahana/PDF-Writer.git
14- GIT_TAG v4.5.10
13+ URL https://github.com/galkahana/PDF-Writer/archive/refs/tags/v4.6.2.tar.gz
14+ URL_HASH SHA256=0a36815ccc9d207028567f90039785c824b211169ba5da68de84d0c15455ab62
15+ DOWNLOAD_EXTRACT_TIMESTAMP FALSE
1516 FIND_PACKAGE_ARGS
1617)
1718FetchContent_MakeAvailable (PDFHummus)
1819
1920# local code
2021ADD_SUBDIRECTORY (TextExtraction )
2122ADD_SUBDIRECTORY (TextExtractionCLI )
22- enable_testing ()
23- ADD_SUBDIRECTORY (TextExtractionTesting )
23+
24+ if (PROJECT_IS_TOP_LEVEL AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /TextExtractionTesting)
25+ # avoid installing the testing materials altogether when included in another project.
26+ # it's annoying when in parent all, and more annoying to then get the tests added
27+ # to the parent project ctest.
28+ enable_testing ()
29+ ADD_SUBDIRECTORY (TextExtractionTesting )
30+ endif ()
2431
2532
2633# cpack
You can’t perform that action at this time.
0 commit comments