From 1fa2e67e227b64bc316c66eb79c389b032bf941f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 29 Apr 2017 14:10:29 +0300 Subject: um: strip the 'lib' prefix from CMake targets --- um/wrappers/simple/CMakeLists.txt | 12 +++++------- um/wrappers/simple/utils/CMakeLists.txt | 5 +++-- 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'um/wrappers/simple') diff --git a/um/wrappers/simple/CMakeLists.txt b/um/wrappers/simple/CMakeLists.txt index ff61bd7..85bc34b 100644 --- a/um/wrappers/simple/CMakeLists.txt +++ b/um/wrappers/simple/CMakeLists.txt @@ -1,9 +1,7 @@ -file(GLOB_RECURSE libsimple_headers "include/*.hpp") -file(GLOB libsimple_sources "src/*.cpp") -add_library(libsimple - ${libsimple_sources} - ${libsimple_headers}) -target_link_libraries(libsimple libservice) -target_include_directories(libsimple PUBLIC include/) +file(GLOB_RECURSE simple_include "include/*.hpp") +file(GLOB simple_src "src/*.cpp") +add_library(simple ${simple_src} ${simple_include}) +target_include_directories(simple PUBLIC include/) +target_link_libraries(simple PRIVATE service) add_subdirectory(utils) diff --git a/um/wrappers/simple/utils/CMakeLists.txt b/um/wrappers/simple/utils/CMakeLists.txt index 2a653fe..c4d3bdd 100644 --- a/um/wrappers/simple/utils/CMakeLists.txt +++ b/um/wrappers/simple/utils/CMakeLists.txt @@ -1,2 +1,3 @@ -add_executable(exchange_ints exchange_ints.cpp) -target_link_libraries(exchange_ints PRIVATE libsimple) +add_executable(simple_exchange_ints exchange_ints.cpp) +target_link_libraries(simple_exchange_ints PRIVATE simple) +set_target_properties(simple_exchange_ints PROPERTIES OUTPUT_NAME exchange_ints) -- cgit v1.2.3