Skip to content

Commit 48d316b

Browse files
committed
add nbl_install_programs to build system
1 parent 456d648 commit 48d316b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/nbl/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,12 @@ nbl_install_headers("${NABLA_HEADERS_TO_INSTALL}" "${NBL_ROOT_PATH}/include")
674674
nbl_install_headers("${NABLA_HEADERS_TO_INSTALL_SOURCE_REFACTOR}" "${NBL_ROOT_PATH}/source/Nabla")
675675
nbl_install_config_header(BuildConfigOptions.h)
676676

677+
macro(nbl_install_program _TRGT)
678+
install(PROGRAMS $<TARGET_FILE:${_TRGT}> DESTINATION lib CONFIGURATIONS Release)
679+
install(PROGRAMS $<TARGET_FILE:${_TRGT}> DESTINATION debug/lib CONFIGURATIONS Debug)
680+
install(PROGRAMS $<TARGET_FILE:${_TRGT}> DESTINATION relwithdebinfo/lib CONFIGURATIONS RelWithDebInfo)
681+
endmacro()
682+
677683
macro(nbl_install_lib _TRGT)
678684
install(TARGETS ${_TRGT} ARCHIVE DESTINATION lib CONFIGURATIONS Release)
679685
install(TARGETS ${_TRGT} ARCHIVE DESTINATION debug/lib CONFIGURATIONS Debug)
@@ -718,8 +724,8 @@ nbl_install_lib(zlibstatic)
718724
nbl_install_lib(simdjson)
719725
nbl_install_lib(volk)
720726
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
721-
nbl_install_lib(tbb)
722-
nbl_install_lib(tbbmalloc)
723-
nbl_install_lib(tbbmalloc_proxy)
727+
nbl_install_program(tbb)
728+
nbl_install_program(tbbmalloc)
729+
nbl_install_program(tbbmalloc_proxy)
724730
endif()
725731

0 commit comments

Comments
 (0)