commit | 3bfe6d59c1d1d96c01fe96f86cff2001d4c5a3cb | [log] [tgz] |
---|---|---|
author | Rich Geldreich <richgel99@gmail.com> | Thu May 23 12:25:04 2019 -0700 |
committer | GitHub <noreply@github.com> | Thu May 23 12:25:04 2019 -0700 |
tree | 9b6ba6fcc5bb03ccdb535a8d628b5ca17abcd668 | |
parent | e00e6c1cb722e3fef148a34635fcc2f962d104af [diff] | |
parent | 00f7b5b4451b84904681c24631ffa01c9249cc8d [diff] |
Merge pull request #9 from 1ace/patch-1 cmake: add installation target
diff --git a/CMakeLists.txt b/CMakeLists.txt index c877223..62d4a41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -75,6 +75,8 @@ add_executable(basisu ${BASISU_SRC_LIST}) target_link_libraries(basisu m pthread) +install(TARGETS basisu DESTINATION bin) + if (CMAKE_BUILD_TYPE STREQUAL Release) if (APPLE) add_custom_command(TARGET basisu POST_BUILD COMMAND strip -X -x ${CMAKE_SOURCE_DIR}/${BIN_DIRECTORY}/basisu)