Add install and bundle targets

This commit is contained in:
Chris Marsh
2017-07-25 16:00:12 -07:00
parent eff657014b
commit fbb9828538
3 changed files with 34 additions and 3 deletions

View File

@ -19,3 +19,19 @@ endif(UNIX)
target_include_directories(discord-rpc PRIVATE ${RAPIDJSON}/include)
add_dependencies(discord-rpc clangformat)
# install
install(
TARGETS discord-rpc
EXPORT "discord-rpc"
LIBRARY DESTINATION "lib"
ARCHIVE DESTINATION "lib"
INCLUDES DESTINATION "include"
)
install(
FILES
"../include/discord-rpc.h"
DESTINATION "include"
)