Browse Source

Install support added.

main
offa 7 years ago
parent
commit
d3436f5cac
2 changed files with 14 additions and 0 deletions
  1. +4
    -0
      CMakeLists.txt
  2. +10
    -0
      cmake/Install.cmake

+ 4
- 0
CMakeLists.txt View File

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


include(Install)



+ 10
- 0
cmake/Install.cmake View File

@@ -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…
Cancel
Save