
set (TARGET "perf")

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../include)

set (SOURCES
  perf.c
)

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/vg.in"
  "${CMAKE_CURRENT_BINARY_DIR}/vg" @ONLY)

add_executable(${TARGET} ${SOURCES})
target_link_libraries(${TARGET} detection)


set (TARGET "libdetection_perf")

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../include)

set (SOURCES
  perf.c
)

configure_file("${CMAKE_CURRENT_SOURCE_DIR}/vg.in"
  "${CMAKE_CURRENT_BINARY_DIR}/vg" @ONLY)

add_executable(${TARGET} ${SOURCES})
target_link_libraries(${TARGET} detection)
install(TARGETS ${LIB_TARGETS}
        RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

Rename perf binary into libdetection_perf & install it
Rename perf binary into libdetection_perf & install it
