From 2386781d4f5cf011c09c70bba94750ecb196f701 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Thu, 1 Jul 2021 16:48:45 -0700 Subject: [PATCH] [host] install cmake target --- host/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index df6fae04..4012d67b 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -6,6 +6,7 @@ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG" CACHE STRING "compiler flag set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/") +include(GNUInstallDirs) include(CheckCCompilerFlag) include(FeatureSummary) @@ -81,6 +82,8 @@ else() set_target_properties(looking-glass-host PROPERTIES LINK_FLAGS "-Wl,--gc-sections -z noexecstack") endif() -install(PROGRAMS ${CMAKE_BINARY_DIR}/looking-glass-host DESTINATION bin/ COMPONENT binary) +install(TARGETS looking-glass-host + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + COMPONENT binary) feature_summary(WHAT ENABLED_FEATURES DISABLED_FEATURES)