Install benchmarks in libexec
This commit is contained in:
parent
b54f9d3176
commit
b6dd78aa6a
@ -80,18 +80,11 @@ find_package(Tampi)
|
||||
set_property(GLOBAL PROPERTY bench6_list "")
|
||||
|
||||
macro(mk_bench NAME)
|
||||
if(NOT "${NAME}" MATCHES "b6_.*")
|
||||
message(FATAL_ERROR "benchmark name must begin with b6_: ${NAME}")
|
||||
endif()
|
||||
add_executable(${NAME})
|
||||
|
||||
get_property(BENCH6_LIST GLOBAL PROPERTY bench6_list)
|
||||
#message(STATUS "Before BENCH6_LIST=${BENCH6_LIST}")
|
||||
list(APPEND BENCH6_LIST ${NAME})
|
||||
#message(STATUS "After BENCH6_LIST=${BENCH6_LIST}")
|
||||
set_property(GLOBAL PROPERTY bench6_list "${BENCH6_LIST}")
|
||||
|
||||
install(TARGETS ${NAME} RUNTIME DESTINATION bin)
|
||||
install(TARGETS ${NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_LIBEXECDIR}")
|
||||
endmacro()
|
||||
|
||||
add_subdirectory(src)
|
||||
|
Loading…
Reference in New Issue
Block a user