X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fbin%2FCMakeLists.txt;h=78bafe2991617158f6889933c6263144d643c7fc;hb=4a434c5a70f3c58c0efbbe9280eef6a7948303f4;hp=7b4c34981f7a6f80f8f26473febd35b7ddbfd27d;hpb=2f289c64f625962d945ec3bee80f36bc5c61ee35;p=awesomized%2Flibmemcached diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt index 7b4c3498..78bafe29 100644 --- a/src/bin/CMakeLists.txt +++ b/src/bin/CMakeLists.txt @@ -1,23 +1,22 @@ add_subdirectory(common) foreach(CLIENT IN LISTS CLIENTS) - add_executable(${CLIENT} ${CLIENT}.cc) - set_property(TARGET ${CLIENT} PROPERTY CXX_STANDARD ${CXX_STANDARD}) + add_executable(${CLIENT} mem${CLIENT}.cc) + set_property(TARGET ${CLIENT} PROPERTY CXX_STANDARD ${CXX_STANDARD} OUTPUT_NAME ${CLIENT_PREFIX}${CLIENT}) target_include_directories(${CLIENT} PRIVATE ..) target_link_libraries(${CLIENT} PRIVATE libclient_common) if(CMAKE_INSTALL_RPATH) set_target_properties(${CLIENT} PROPERTIES INSTALL_RPATH ${CMAKE_INSTALL_RPATH}/../${CMAKE_INSTALL_LIBDIR}) endif() - install(TARGETS ${CLIENT} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + install(TARGETS ${CLIENT} RUNTIME COMPONENT bin DESTINATION ${CMAKE_INSTALL_BINDIR}) endforeach() # extra sources -target_sources(memcapable PRIVATE ../libmemcached/byteorder.cc) +target_sources(capable PRIVATE ../libmemcached/byteorder.cc) # extra libs -target_link_libraries(memping PRIVATE libmemcachedutil) -target_link_libraries(memslap PRIVATE Threads::Threads) +target_link_libraries(ping PRIVATE libmemcachedutil) +target_link_libraries(slap PRIVATE Threads::Threads)