File tree Expand file tree Collapse file tree 5 files changed +31
-53
lines changed
Expand file tree Collapse file tree 5 files changed +31
-53
lines changed Original file line number Diff line number Diff line change 1+ * build
Original file line number Diff line number Diff line change 44# cmake-format: on
55
66cmake_minimum_required(VERSION 3.23)
7+
78project(
8- beman.inplace_vector
9- VERSION 1.0.0
10- DESCRIPTION "A dynamically-resizable vector with fixed capacity and embedded storage"
11- LANGUAGES CXX
12- )
9+ beman.inplace_vector
10+ VERSION 1.0.0
11+ DESCRIPTION
12+ "A dynamically-resizable vector with fixed capacity and embedded storage"
13+ LANGUAGES CXX)
14+
15+ add_library(beman.inplace_vector INTERFACE)
16+ target_include_directories(
17+ beman.inplace_vector
18+ INTERFACE $< BUILD_INTERFACE :${CMAKE_CURRENT_SOURCE_DIR}/include>
19+ $< INSTALL_INTERFACE :include>)
1320
14- include (CTest)
15- add_subdirectory(src/beman/inplace_vector)
21+ # Install the InplaceVector library to the appropriate destination
22+ install(
23+ TARGETS beman.inplace_vector
24+ EXPORT ${TARGETS_EXPORT_NAME}
25+ DESTINATION ${CMAKE_INSTALL_LIBDIR})
26+
27+ # Install the header files to the appropriate destination
28+ install(
29+ DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
30+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${CMAKE_PROJECT_NAME}
31+ FILES_MATCHING
32+ PATTERN
33+ "${CMAKE_CURRENT_SOURCE_DIR}/include/beman/inplace_vector/inplace_vector.hpp"
34+ )
1635
17- if (BUILD_TESTING)
18- add_subdirectory(src/beman/inplace_vector/tests)
19- endif ()
36+ if(BUILD_TESTING)
37+ include (CTest)
38+ add_subdirectory(src/beman/inplace_vector/tests)
39+ endif()
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ add_executable(
1010target_link_libraries(beman.inplace_vector.test PRIVATE
1111 beman.inplace_vector)
1212
13-
1413add_test(
1514 NAME beman.inplace_vector.test
1615 COMMAND beman.inplace_vector.test
You can’t perform that action at this time.
0 commit comments