commit c5e405f03582c4747fca0d873b5107d220397816
parent 1fda4f030ebbd05f9dfc26a00b1c847b08f6c433
Author: [email protected] <[email protected]>
Date: Tue, 13 Feb 2024 21:05:12 +0000
KFR_DEBUG_INSTALL_SUFFIX
Diffstat:
5 files changed, 14 insertions(+), 12 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@@ -362,6 +362,8 @@ if (KFR_EXTENDED_TESTS)
target_compile_definitions(kfr INTERFACE -DKFR_EXTENDED_TESTS)
endif ()
+set(KFR_DEBUG_INSTALL_SUFFIX "/debug" CACHE STRING "")
+
add_subdirectory(src/dsp)
add_subdirectory(src/io)
if (KFR_ENABLE_DFT)
diff --git a/src/capi/CMakeLists.txt b/src/capi/CMakeLists.txt
@@ -50,9 +50,9 @@ if (KFR_INSTALL_LIBRARIES)
install(
TARGETS kfr_capi
EXPORT kfr_export
- ARCHIVE DESTINATION lib$<$<CONFIG:Debug>:/debug>
- LIBRARY DESTINATION lib$<$<CONFIG:Debug>:/debug>
- RUNTIME DESTINATION bin$<$<CONFIG:Debug>:/debug>
+ ARCHIVE DESTINATION lib$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>
+ LIBRARY DESTINATION lib$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>
+ RUNTIME DESTINATION bin$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>
)
endif ()
endif ()
diff --git a/src/dft/CMakeLists.txt b/src/dft/CMakeLists.txt
@@ -19,7 +19,7 @@ if (KFR_INSTALL_LIBRARIES)
install(
TARGETS ${kfr_dft_TARGETS}
EXPORT kfr_export
- ARCHIVE DESTINATION lib$<$<CONFIG:Debug>:/debug>
- LIBRARY DESTINATION lib$<$<CONFIG:Debug>:/debug>
- RUNTIME DESTINATION bin$<$<CONFIG:Debug>:/debug>)
+ ARCHIVE DESTINATION lib$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>
+ LIBRARY DESTINATION lib$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>
+ RUNTIME DESTINATION bin$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>)
endif ()
diff --git a/src/dsp/CMakeLists.txt b/src/dsp/CMakeLists.txt
@@ -6,7 +6,7 @@ if (KFR_INSTALL_LIBRARIES)
install(
TARGETS ${kfr_dsp_TARGETS}
EXPORT kfr_export
- ARCHIVE DESTINATION lib$<$<CONFIG:Debug>:/debug>
- LIBRARY DESTINATION lib$<$<CONFIG:Debug>:/debug>
- RUNTIME DESTINATION bin$<$<CONFIG:Debug>:/debug>)
+ ARCHIVE DESTINATION lib$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>
+ LIBRARY DESTINATION lib$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>
+ RUNTIME DESTINATION bin$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>)
endif ()
diff --git a/src/io/CMakeLists.txt b/src/io/CMakeLists.txt
@@ -6,7 +6,7 @@ if (KFR_INSTALL_LIBRARIES)
install(
TARGETS kfr_io
EXPORT kfr_export
- ARCHIVE DESTINATION lib$<$<CONFIG:Debug>:/debug>
- LIBRARY DESTINATION lib$<$<CONFIG:Debug>:/debug>
- RUNTIME DESTINATION bin$<$<CONFIG:Debug>:/debug>)
+ ARCHIVE DESTINATION lib$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>
+ LIBRARY DESTINATION lib$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>
+ RUNTIME DESTINATION bin$<$<CONFIG:Debug>:${KFR_DEBUG_INSTALL_SUFFIX}>)
endif ()