[trunk] Requires CMake 2.8.2 at least
This commit is contained in:
parent
f501186b18
commit
60fc79c717
|
@ -7,7 +7,7 @@
|
||||||
# For this purpose you can define a CMake var: OPENJPEG_NAMESPACE to whatever you like
|
# For this purpose you can define a CMake var: OPENJPEG_NAMESPACE to whatever you like
|
||||||
# e.g.:
|
# e.g.:
|
||||||
# set(OPENJPEG_NAMESPACE "GDCMOPENJPEG")
|
# set(OPENJPEG_NAMESPACE "GDCMOPENJPEG")
|
||||||
cmake_minimum_required(VERSION 2.6)
|
cmake_minimum_required(VERSION 2.8.2)
|
||||||
|
|
||||||
if(COMMAND CMAKE_POLICY)
|
if(COMMAND CMAKE_POLICY)
|
||||||
cmake_policy(SET CMP0003 NEW)
|
cmake_policy(SET CMP0003 NEW)
|
||||||
|
|
|
@ -60,11 +60,13 @@ if(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CPACK_BUNDLE_NAME "OpenJPEG ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
|
set(CPACK_BUNDLE_NAME "OpenJPEG ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}")
|
||||||
configure_file(${CMAKE_ROOT}/Templates/AppleInfo.plist
|
if(APPLE)
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/opj.plist)
|
configure_file(${CMAKE_ROOT}/Templates/AppleInfo.plist
|
||||||
set(CPACK_BUNDLE_PLIST
|
${CMAKE_CURRENT_BINARY_DIR}/opj.plist)
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/opj.plist)
|
set(CPACK_BUNDLE_PLIST
|
||||||
#include(BundleUtilities)
|
${CMAKE_CURRENT_BINARY_DIR}/opj.plist)
|
||||||
|
#include(BundleUtilities)
|
||||||
|
endif()
|
||||||
|
|
||||||
include(CPack)
|
include(CPack)
|
||||||
endiF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
|
endiF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
|
||||||
|
|
Loading…
Reference in New Issue