Install benchmarks in libexec

This commit is contained in:
Rodrigo Arias 2024-04-15 15:28:26 +02:00
parent b54f9d3176
commit b6dd78aa6a

View File

@ -80,18 +80,11 @@ find_package(Tampi)
set_property(GLOBAL PROPERTY bench6_list "") set_property(GLOBAL PROPERTY bench6_list "")
macro(mk_bench NAME) macro(mk_bench NAME)
if(NOT "${NAME}" MATCHES "b6_.*")
message(FATAL_ERROR "benchmark name must begin with b6_: ${NAME}")
endif()
add_executable(${NAME}) add_executable(${NAME})
get_property(BENCH6_LIST GLOBAL PROPERTY bench6_list) get_property(BENCH6_LIST GLOBAL PROPERTY bench6_list)
#message(STATUS "Before BENCH6_LIST=${BENCH6_LIST}")
list(APPEND BENCH6_LIST ${NAME}) list(APPEND BENCH6_LIST ${NAME})
#message(STATUS "After BENCH6_LIST=${BENCH6_LIST}")
set_property(GLOBAL PROPERTY bench6_list "${BENCH6_LIST}") set_property(GLOBAL PROPERTY bench6_list "${BENCH6_LIST}")
install(TARGETS ${NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_LIBEXECDIR}")
install(TARGETS ${NAME} RUNTIME DESTINATION bin)
endmacro() endmacro()
add_subdirectory(src) add_subdirectory(src)