浏览代码

Conan package test added (#161).

main
offa 5 年前
父节点
当前提交
a7fc70a9a0
共有 2 个文件被更改,包括 14 次插入3 次删除
  1. +5
    -0
      test_package/CMakeLists.txt
  2. +9
    -3
      test_package/example.cpp

+ 5
- 0
test_package/CMakeLists.txt 查看文件

@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.11)
project(PackageTest CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)


include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()


+ 9
- 3
test_package/example.cpp 查看文件

@@ -1,6 +1,12 @@
#include <iostream>
#include "hello.h"
#include <scope.h>

int main() {
hello();
int main()
{
sr::scope_exit se{[]{}};
sr::scope_fail sf{[]{}};
sr::scope_success ss{[]{}};
sr::unique_resource ur{3, [](auto x){}};

return 0;
}

正在加载...
取消
保存