瀏覽代碼

Conan support (#156); Trompeloeil dependency added.

main
offa 5 年之前
父節點
當前提交
093c087aef
共有 2 個檔案被更改,包括 4 行新增5 行删除
  1. +2
    -0
      conanfile.txt
  2. +2
    -5
      test/CMakeLists.txt

+ 2
- 0
conanfile.txt 查看文件

@@ -1,6 +1,8 @@
[requires]
Catch2/2.8.0@catchorg/stable
trompeloeil/v34@rollbear/stable

[generators]
cmake_find_package
cmake_paths


+ 2
- 5
test/CMakeLists.txt 查看文件

@@ -1,11 +1,8 @@
find_package(Catch2 REQUIRED)

add_library(Trompeloeil INTERFACE)
target_include_directories(Trompeloeil INTERFACE "trompeloeil")

find_package(trompeloeil REQUIRED)

add_library(TestMain TestMain.cpp)
target_link_libraries(TestMain PUBLIC Catch2::Catch2 Trompeloeil)
target_link_libraries(TestMain PUBLIC Catch2::Catch2 trompeloeil::trompeloeil)


function(add_test_suite name)

Loading…
取消
儲存