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/service | |
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/service')
-rw-r--r-- | um/service/CMakeLists.txt | 12 | ||||
-rw-r--r-- | um/service/test/CMakeLists.txt | 6 | ||||
-rw-r--r-- | um/service/utils/CMakeLists.txt | 20 |
3 files changed, 20 insertions, 18 deletions
diff --git a/um/service/CMakeLists.txt b/um/service/CMakeLists.txt index 34b3d13..ff3f4f4 100644 --- a/um/service/CMakeLists.txt +++ b/um/service/CMakeLists.txt @@ -1,10 +1,8 @@ -file(GLOB libservice_sources "src/*.cpp") -file(GLOB_RECURSE libservice_headers "include/*.hpp") -add_library(libservice - ${libservice_sources} - ${libservice_headers}) -target_include_directories(libservice PUBLIC include) -target_compile_definitions(libservice PRIVATE NOMINMAX) +file(GLOB_RECURSE service_include "include/*.hpp") +file(GLOB service_src "src/*.cpp") +add_library(service ${service_src} ${service_include}) +target_compile_definitions(service PRIVATE NOMINMAX) +target_include_directories(service PUBLIC include/) add_subdirectory(test) add_subdirectory(utils) diff --git a/um/service/test/CMakeLists.txt b/um/service/test/CMakeLists.txt index 6825337..035d3a2 100644 --- a/um/service/test/CMakeLists.txt +++ b/um/service/test/CMakeLists.txt @@ -1,3 +1,3 @@ -add_executable(libservice_test_windows_error windows_error.cpp) -target_link_libraries(libservice_test_windows_error PRIVATE libservice) -set_target_properties(libservice_test_windows_error PROPERTIES OUTPUT_NAME windows_error) +add_executable(service_test_windows_error windows_error.cpp) +target_link_libraries(service_test_windows_error PRIVATE service) +set_target_properties(service_test_windows_error PROPERTIES OUTPUT_NAME windows_error) diff --git a/um/service/utils/CMakeLists.txt b/um/service/utils/CMakeLists.txt index fc5cc1b..f288c51 100644 --- a/um/service/utils/CMakeLists.txt +++ b/um/service/utils/CMakeLists.txt @@ -1,11 +1,15 @@ -add_executable(install_service install_service.cpp) -target_link_libraries(install_service PRIVATE libservice) +add_executable(service_install install_service.cpp) +target_link_libraries(service_install PRIVATE service) +set_target_properties(service_install PROPERTIES OUTPUT_NAME install_service) -add_executable(start_service start_service.cpp) -target_link_libraries(start_service PRIVATE libservice) +add_executable(service_start start_service.cpp) +target_link_libraries(service_start PRIVATE service) +set_target_properties(service_start PROPERTIES OUTPUT_NAME start_service) -add_executable(stop_service stop_service.cpp) -target_link_libraries(stop_service PRIVATE libservice) +add_executable(service_stop stop_service.cpp) +target_link_libraries(service_stop PRIVATE service) +set_target_properties(service_stop PROPERTIES OUTPUT_NAME stop_service) -add_executable(uninstall_service uninstall_service.cpp) -target_link_libraries(uninstall_service PRIVATE libservice) +add_executable(service_uninstall uninstall_service.cpp) +target_link_libraries(service_uninstall PRIVATE service) +set_target_properties(service_uninstall PROPERTIES OUTPUT_NAME uninstall_service) |