From 1f46b3662b61bd083d2791ff9d311f71b6a36930 Mon Sep 17 00:00:00 2001 From: Victor Moncada Date: Fri, 9 Aug 2024 08:48:58 +0200 Subject: [PATCH] updated documentation --- README.md | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/README.md b/README.md index 004215c..00ee6e4 100644 --- a/README.md +++ b/README.md @@ -93,38 +93,8 @@ Note that for msvc build, AVX2 support is enabled by default. You should call cm Using Seq library with CMake ---------------------------- -The follwing example shows how to use the *seq* library within a CMake project: +This [cmake example](tests/test_cmake/CMakeLists.txt) shows how to use the *seq* library within a cmake project. It creates 3 targets using the shared seq library, the static one, and the header only mode. -```cmake - -cmake_minimum_required(VERSION 3.8) - -# Dummy test project -project(test) - -# Add sources -add_executable(test test.cpp) - -# Find package seq -find_package(seq REQUIRED) - -# SEQ_FOUND is set to TRUE if found -if(${SEQ_FOUND}) - message(STATUS "Seq library found, version ${SEQ_VERSION}") -endif() - -# Add include directory -target_include_directories(test PRIVATE ${SEQ_INCLUDE_DIR}) - -# Link with seq library if not header only -if(DEFINED SEQ_LIBRARY) - # Add lib directory - target_link_directories(test PRIVATE ${SEQ_LIB_DIR}) - # Add lib - target_link_libraries(test ${SEQ_LIBRARY} ) -endif() - -``` Acknowledgements ----------------