Skip to content

Commit f06aeb4

Browse files
committed
install setup for libmamba-spdlog
1 parent 448511e commit f06aeb4

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

libmamba-spdlog/CMakeLists.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,25 @@ set_target_properties(
6060
CXX_EXTENSIONS NO
6161
)
6262

63+
include(CMakePackageConfigHelpers)
64+
write_basic_package_version_file(
65+
"${PROJECT_BINARY_DIR}/mylibConfigVersion.cmake"
66+
VERSION 0.1
67+
COMPATIBILITY AnyNewerVersion
68+
)
69+
70+
install(TARGETS libmamba-spdlog
71+
EXPORT libmamba-spdlog
72+
LIBRARY DESTINATION lib COMPONENT Runtime
73+
ARCHIVE DESTINATION lib COMPONENT Development
74+
RUNTIME DESTINATION bin COMPONENT Runtime
75+
PUBLIC_HEADER DESTINATION include COMPONENT Development
76+
BUNDLE DESTINATION bin COMPONENT Runtime
77+
)
78+
79+
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include)
80+
6381
if(BUILD_LIBMAMBA_SPDLOG_TESTS)
6482
add_subdirectory(tests/)
6583
endif()
84+

libmamba-spdlog/tests/test_logging_spdlog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <catch2/catch_all.hpp>
1111
#include <fmt/core.h>
1212

13-
#include <mamba/logging_spdlog.hpp>
13+
#include <mamba/spdlog/logging_spdlog.hpp>
1414

1515
#include <mamba/testing/test_logging_common.hpp>
1616

0 commit comments

Comments
 (0)