瀏覽代碼

Installation related changes.

main
offa 7 年之前
父節點
當前提交
1cdbbb8456
共有 2 個文件被更改,包括 5 次插入9 次删除
  1. +3
    -1
      CMakeLists.txt
  2. +2
    -8
      cmake/Install.cmake

+ 3
- 1
CMakeLists.txt 查看文件

@@ -29,7 +29,9 @@ set(CMAKE_CXX_EXTENSIONS OFF)


add_library(ScopeGuard INTERFACE)
target_include_directories(ScopeGuard INTERFACE "include")
target_include_directories(ScopeGuard INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)


if( UNITTEST )

+ 2
- 8
cmake/Install.cmake 查看文件

@@ -1,10 +1,4 @@

include(GNUInstallDirs)

install(TARGETS ScopeGuard
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

install(TARGETS ScopeGuard EXPORT ScopeGuard-config DESTINATION include)
install(EXPORT ScopeGuard-config DESTINATION share/scopeguard/cmake)


Loading…
取消
儲存