From dfbbd03282a8ebd184bab7712d6afd60c4e38e66 Mon Sep 17 00:00:00 2001 From: Slendi Date: Sun, 24 Aug 2025 21:36:04 +0300 Subject: [PATCH] Fixup Signed-off-by: Slendi --- CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30b2889..94298ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.15) -project(SmathExamples CXX) +project(SmathExamples LANGUAGES CXX VERSION 0.1.0) set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -8,14 +8,18 @@ option(BUILD_EXAMPLES "Build example programs" ON) option(BUILD_TESTS "Build unit tests" ON) add_library(smath INTERFACE) -target_include_directories(smath INTERFACE ${CMAKE_SOURCE_DIR}/include) +target_include_directories(smath + INTERFACE + $ + $ +) add_library(smath::smath ALIAS smath) include(CMakePackageConfigHelpers) install(TARGETS smath EXPORT smathTargets ) -install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/ DESTINATION include) +install(DIRECTORY include/ DESTINATION include) install(EXPORT smathTargets NAMESPACE smath::