Skip to content
Snippets Groups Projects
Commit 454fb056 authored by amorilia's avatar amorilia
Browse files

Merge pull request #11 from amorilia/feature/cpack

Add CPack support for creating source and binary package.
parents 9cf09879 66fc4e99
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 2.8)
project(niflib)
file(STRINGS "VERSION" VERSION)
# enable CPack
set(CPACK_PACKAGE_VERSION ${VERSION})
set(CPACK_GENERATOR ZIP)
set(CPACK_SOURCE_PACKAGE_FILE_NAME "niflib-${VERSION}-src")
set(CPACK_SOURCE_GENERATOR ZIP)
set(CPACK_SOURCE_IGNORE_FILES
"~$"
/\\\\.git/
\\\\.*project$
\\\\.*gitmodules$
\\\\.*gitattributes$
\\\\.*gitignore$
)
include(CPack)
include_directories("include")
......@@ -554,3 +570,16 @@ PROPERTIES DEFINE_SYMBOL BUILDING_NIFLIB_DLL)
# build the tests, this needs boost
enable_testing()
add_subdirectory(test)
# install
install(
TARGETS niflib
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)
install(
DIRECTORY include/
DESTINATION include
)
Version 0.8.2 (in development)
==============================
* Add CPack support for creating source and binary releases.
Version 0.8.1
=============
......
VERSION=`cat VERSION`
rm ../niflib-${VERSION}-src.zip
git submodule update --recursive
git clean -xfd
git submodule foreach --recursive git clean -xfd
doxygen
find . -type f -not -wholename "*.git*" -and -not -name ".project" | xargs zip ../niflib-${VERSION}-src.zip
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment