diff options
Diffstat (limited to 'graphics/asymptote/cxxtests/cmake-scripts')
-rw-r--r-- | graphics/asymptote/cxxtests/cmake-scripts/external-libs.cmake | 19 | ||||
-rw-r--r-- | graphics/asymptote/cxxtests/cmake-scripts/tests.cmake | 12 |
2 files changed, 31 insertions, 0 deletions
diff --git a/graphics/asymptote/cxxtests/cmake-scripts/external-libs.cmake b/graphics/asymptote/cxxtests/cmake-scripts/external-libs.cmake new file mode 100644 index 0000000000..070d06a868 --- /dev/null +++ b/graphics/asymptote/cxxtests/cmake-scripts/external-libs.cmake @@ -0,0 +1,19 @@ +# Use directly downloaded library because vcpkg's version has some +# linking issues with windows + clang64-msys2 + +if (DOWNLOAD_GTEST_FROM_SRC) + include(FetchContent) + FetchContent_Declare( + googletest + GIT_REPOSITORY https://github.com/google/googletest + GIT_TAG v1.14.0 + ) + + if (WIN32) + set(gtest_force_shared_crt ON CACHE INTERNAL "Force shared CRT") + endif() + + FetchContent_MakeAvailable(googletest) +else() + find_package(GTest REQUIRED) +endif() diff --git a/graphics/asymptote/cxxtests/cmake-scripts/tests.cmake b/graphics/asymptote/cxxtests/cmake-scripts/tests.cmake new file mode 100644 index 0000000000..d76bcf7f3c --- /dev/null +++ b/graphics/asymptote/cxxtests/cmake-scripts/tests.cmake @@ -0,0 +1,12 @@ +# add tests here + +set(ASY_CXX_TESTS + placeholder +) + +# ----- transform tests -------- +list(TRANSFORM ASY_CXX_TESTS APPEND .cc) +list(TRANSFORM ASY_CXX_TESTS + PREPEND ${TEST_CXX_SRC_ROOT}/tests/ + OUTPUT_VARIABLE ASY_TEST_SOURCES +) |