Merge pull request #9 from 1ace/patch-1

cmake: add installation target
This commit is contained in:
Rich Geldreich
2019-05-23 12:25:04 -07:00
committed by GitHub

View File

@@ -75,6 +75,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/${BIN_DIRECTORY})
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)