cmake_minimum_required(VERSION 3.11) | cmake_minimum_required(VERSION 3.11) | ||||
project(PackageTest CXX) | 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) | include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||||
conan_basic_setup() | conan_basic_setup() | ||||
#include <iostream> | #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; | |||||
} | } |