Skip to content
This repository has been archived by the owner on Dec 31, 2020. It is now read-only.

Commit

Permalink
Compile libraries as dynamic libs.
Browse files Browse the repository at this point in the history
Excluse qtproject folder in source packages.
Add support for package generation using cpack.
  • Loading branch information
castano committed Mar 14, 2009
1 parent 53e6c4c commit 0ce5786
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>")
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 changes: 1 addition & 1 deletion buildpkg
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
Expand Down

0 comments on commit 0ce5786

Please sign in to comment.