diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-04-29 14:10:29 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-04-29 14:10:29 +0300 |
commit | 1fa2e67e227b64bc316c66eb79c389b032bf941f (patch) | |
tree | af0794a51eebdfe72efdc47be0d06f8fdd74edd0 /um/wrappers/simple | |
parent | nt_path_converter -> nt_namespace (diff) | |
download | windows7-drivers-1fa2e67e227b64bc316c66eb79c389b032bf941f.tar.gz windows7-drivers-1fa2e67e227b64bc316c66eb79c389b032bf941f.zip |
um: strip the 'lib' prefix from CMake targets
Diffstat (limited to 'um/wrappers/simple')
-rw-r--r-- | um/wrappers/simple/CMakeLists.txt | 12 | ||||
-rw-r--r-- | um/wrappers/simple/utils/CMakeLists.txt | 5 |
2 files changed, 8 insertions, 9 deletions
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) |