Ver código fonte

Conan package test added (#161).

main
offa 5 anos atrás
pai
commit
a7fc70a9a0
2 arquivos alterados com 14 adições e 3 exclusões
  1. +5
    -0
      test_package/CMakeLists.txt
  2. +9
    -3
      test_package/example.cpp

+ 5
- 0
test_package/CMakeLists.txt Ver arquivo

@@ -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 Ver arquivo

@@ -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;
}

Carregando…
Cancelar
Salvar