瀏覽代碼

Install support added.

main
offa 7 年之前
父節點
當前提交
d3436f5cac
共有 2 個檔案被更改,包括 14 行新增0 行删除
  1. +4
    -0
      CMakeLists.txt
  2. +10
    -0
      cmake/Install.cmake

+ 4
- 0
CMakeLists.txt 查看文件

@@ -37,3 +37,7 @@ if( UNITTEST )
add_subdirectory("test")
endif()


include(Install)



+ 10
- 0
cmake/Install.cmake 查看文件

@@ -0,0 +1,10 @@

include(GNUInstallDirs)

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



Loading…
取消
儲存