Skip to content

Commit

Permalink
Added the namespaced alias, fixed include install location.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Aug 5, 2023
1 parent 32d6049 commit 7813c88
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
cmake_minimum_required(VERSION 3.14)

project(tatami_chunked
VERSION 1.0.0
VERSION 1.0.1
DESCRIPTION "tatami bindings for chunked matrices"
LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)

add_library(tatami_chunked INTERFACE)
add_library(tatami::tatami_chunked ALIAS tatami_chunked)

option(TATAMI_CHUNKED_FETCH_EXTERN "Automatically fetch tatami_chunked's external dependencies." ON)
if(TATAMI_CHUNKED_FETCH_EXTERN)
Expand All @@ -24,7 +25,7 @@ include(GNUInstallDirs)
target_include_directories(tatami_chunked
INTERFACE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/tatami_chunked>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/tatami_tatami_chunked>"
)

# Building the test-related machinery, if we are compiling this library directly.
Expand All @@ -45,7 +46,7 @@ endif()
include(CMakePackageConfigHelpers)

install(DIRECTORY include/
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tatami_chunked)
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/tatami_tatami_chunked)

install(TARGETS tatami_chunked
EXPORT tatami_chunkedTargets)
Expand Down

0 comments on commit 7813c88

Please sign in to comment.