Compile libraries as dynamic libs.
Excluse qtproject folder in source packages. Add support for package generation using cpack.
This commit is contained in:
parent
53e6c4c911
commit
0ce578668f
@ -33,3 +33,23 @@ ENDIF(NVTT_SHARED)
|
||||
ADD_SUBDIRECTORY(extern)
|
||||
|
||||
ADD_SUBDIRECTORY(src)
|
||||
|
||||
INSTALL(FILES
|
||||
NVIDIA_Texture_Tools_LICENSE.txt
|
||||
NVIDIA_Texture_Tools_README.txt
|
||||
ChangeLog
|
||||
DESTINATION .)
|
||||
|
||||
# Add packaging support
|
||||
INCLUDE(InstallRequiredSystemLibraries)
|
||||
SET(CPACK_GENERATOR "TGZ;DEB")
|
||||
SET(CPACK_PACKAGE_NAME "nvidia-texture-tools")
|
||||
SET(CPACK_PACKAGE_VERSION "2.1.0")
|
||||
SET(CPACK_PACKAGE_CONTACT "Ignacio Castaño <icastano@nvidia.com>")
|
||||
SET(CPACK_PACKAGE_VENDOR "NVIDIA Corporation")
|
||||
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "GPU-accelerated Texture Tools with support for DirectX 10 texture formats")
|
||||
|
||||
SET(CPACK_PACKAGE_ICON "${NV_SOURCE_DIR}/project/vc8/nvcompress/nvidia.ico")
|
||||
|
||||
SET(CPACK_RESOURCE_FILE_LICENSE "${NV_SOURCE_DIR}/NVIDIA_Texture_Tools_LICENSE.txt")
|
||||
INCLUDE(CPack)
|
||||
|
2
buildpkg
2
buildpkg
@ -3,5 +3,5 @@
|
||||
tar zcvf nvidia-texture-tools-`cat VERSION`.tar.gz \
|
||||
--exclude '.*' --exclude debian --exclude '*~' --exclude buildpkg \
|
||||
--exclude 'build-*' --exclude data --exclude tags --exclude Makefile \
|
||||
--exclude 'nvidia-texture-tools-*.tar.gz' \
|
||||
--exclude qtcreator-build --exclude 'nvidia-texture-tools-*.tar.gz' \
|
||||
--transform 's,^,nvidia-texture-tools/,' *
|
||||
|
2
configure
vendored
2
configure
vendored
@ -53,7 +53,7 @@ echo "-- Configuring nvidia-texture-tools "`cat VERSION`
|
||||
|
||||
mkdir -p ./build-$build
|
||||
cd ./build-$build
|
||||
$CMAKE .. -DCMAKE_BUILD_TYPE=$build -DCMAKE_INSTALL_PREFIX=$prefix -G "Unix Makefiles" || exit 1
|
||||
$CMAKE .. -DNVTT_SHARED=1 -DCMAKE_BUILD_TYPE=$build -DCMAKE_INSTALL_PREFIX=$prefix -G "Unix Makefiles" || exit 1
|
||||
cd ..
|
||||
|
||||
echo ""
|
||||
|
Loading…
Reference in New Issue
Block a user