From d54c2033eaaad5b6f9340b7cbaf8b3b037fb3cbe Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 17 Dec 2025 14:53:59 +0100 Subject: chore: updated file structure. Signed-off-by: Amlal El Mahrouss --- example/smart_ptr_example/CMakeLists.txt | 15 +++++++++++++++ example/smart_ptr_example/example.cc | 10 ++++++++++ 2 files changed, 25 insertions(+) create mode 100644 example/smart_ptr_example/CMakeLists.txt create mode 100644 example/smart_ptr_example/example.cc (limited to 'example/smart_ptr_example') diff --git a/example/smart_ptr_example/CMakeLists.txt b/example/smart_ptr_example/CMakeLists.txt new file mode 100644 index 0000000..6584ad2 --- /dev/null +++ b/example/smart_ptr_example/CMakeLists.txt @@ -0,0 +1,15 @@ + +cmake_minimum_required(VERSION 3.15...3.31) + +project( + SmartPtrExample + VERSION 1.0 + LANGUAGES CXX) + +find_package(Boost REQUIRED COMPONENTS container) + +add_executable(SmartPtrExample example.cc) + +set_property(TARGET SmartPtrExample PROPERTY CXX_STANDARD 20) +target_include_directories(SmartPtrExample PUBLIC ../../include/) +target_link_libraries(SmartPtrExample PRIVATE Boost::container) diff --git a/example/smart_ptr_example/example.cc b/example/smart_ptr_example/example.cc new file mode 100644 index 0000000..ef1a865 --- /dev/null +++ b/example/smart_ptr_example/example.cc @@ -0,0 +1,10 @@ +#include +#include +#include + +int main(int argc, char** argv) +{ + ocl::shared_ptr smart = ocl::delete_ptr(&std::cout); + + return 0; +} -- cgit v1.2.3