Browse Source

Conan package test added (#161).

main
offa 5 years ago
parent
commit
a7fc70a9a0
2 changed files with 14 additions and 3 deletions
  1. +5
    -0
      test_package/CMakeLists.txt
  2. +9
    -3
      test_package/example.cpp

+ 5
- 0
test_package/CMakeLists.txt View File

@@ -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 View File

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

Loading…
Cancel
Save