Skip to content

Commit

Permalink
* added cpack support to replace the tgz_create script. Run 'make pac…
Browse files Browse the repository at this point in the history
…kage_source' to create 'olio.VERSION.tar.gz'

* removed tgz_create script
  • Loading branch information
malcolmhumphreys authored and jeremyselan committed Oct 15, 2010
1 parent 4581f2e commit 8897a98
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
16 changes: 15 additions & 1 deletion CMakeLists.txt
@@ -1,6 +1,9 @@

project(OpenColorIO)
set(OCIO_VERSION "0.6.1")
set(OCIO_VERSION_MAJOR 0)
set(OCIO_VERSION_MINOR 6)
set(OCIO_VERSION_PATCH 1)
set(OCIO_VERSION "${OCIO_VERSION_MAJOR}.${OCIO_VERSION_MINOR}.${OCIO_VERSION_PATCH}")

cmake_minimum_required(VERSION 2.6)
set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/share/cmake )
Expand Down Expand Up @@ -110,6 +113,17 @@ endif()

add_subdirectory (src/pyglue)

###############################################################################
### CPACK ###

set(CPACK_PACKAGE_VERSION_MAJOR ${OCIO_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${OCIO_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${OCIO_VERSION_PATCH})
set(CPACK_GENERATOR None)
set(CPACK_SOURCE_GENERATOR TGZ)
set(CPACK_SOURCE_PACKAGE_FILE_NAME "ocio.${OCIO_VERSION}")
include(CPack)

###############################################################################
### CTEST ###

Expand Down
8 changes: 0 additions & 8 deletions tgz_create

This file was deleted.

0 comments on commit 8897a98

Please sign in to comment.