diff options
author | Brad King <brad.king@kitware.com> | 2013-11-12 21:32:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-11-12 21:35:17 (GMT) |
commit | 621ba1fd04bae0a450da91887308a5647f071892 (patch) | |
tree | 557863dfa4796d5329c940f0bfb20237525d40ee | |
parent | 993b685676de7bd63c7e45d7b119acc2da9b2fc3 (diff) | |
download | CMake-621ba1fd04bae0a450da91887308a5647f071892.zip CMake-621ba1fd04bae0a450da91887308a5647f071892.tar.gz CMake-621ba1fd04bae0a450da91887308a5647f071892.tar.bz2 |
cmake-gui: Parse Copyright.txt instead of duplicating notice
Set the cmake-gui MACOSX_BUNDLE_COPYRIGHT property by parsing the
copyright notice line out of Copyright.txt instead of duplicating it.
-rw-r--r-- | Source/QtDialog/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt index 88a9fc9..ee0b831 100644 --- a/Source/QtDialog/CMakeLists.txt +++ b/Source/QtDialog/CMakeLists.txt @@ -111,12 +111,15 @@ if(Qt_BIN_DIR) endif() if(APPLE) + file(STRINGS "${CMake_SOURCE_DIR}/Copyright.txt" copyright_line + LIMIT_COUNT 1 REGEX "^Copyright 2000-20[0-9][0-9] Kitware") + set_target_properties(cmake-gui PROPERTIES OUTPUT_NAME ${CMAKE_BUNDLE_NAME} MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in" MACOSX_BUNDLE_SHORT_VERSION_STRING "${CMAKE_BUNDLE_VERSION}" # TBD: MACOSX_BUNDLE_BUNDLE_VERSION "${CMAKE_BUNDLE_VERSION}" - MACOSX_BUNDLE_COPYRIGHT "Copyright 2000-2013 Kitware, Inc." + MACOSX_BUNDLE_COPYRIGHT "${copyright_line}" ) # Create a symlink in the build tree to provide a "cmake-gui" next |