summaryrefslogtreecommitdiffstats
path: root/Tests/BundleGeneratorTest
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2012-08-13 17:47:32 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-13 18:19:16 (GMT)
commit77543bde41b0e52c3959016698b529835945d62d (patch)
treeff63e5fbec326c4a5d821e7496c6d2cb52f75b92 /Tests/BundleGeneratorTest
parent7bbaa4283de26864b2e55e819db0884771585467 (diff)
downloadCMake-77543bde41b0e52c3959016698b529835945d62d.zip
CMake-77543bde41b0e52c3959016698b529835945d62d.tar.gz
CMake-77543bde41b0e52c3959016698b529835945d62d.tar.bz2
Convert CMake-language commands to lower case
Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
Diffstat (limited to 'Tests/BundleGeneratorTest')
-rw-r--r--Tests/BundleGeneratorTest/CMakeLists.txt34
1 files changed, 17 insertions, 17 deletions
diff --git a/Tests/BundleGeneratorTest/CMakeLists.txt b/Tests/BundleGeneratorTest/CMakeLists.txt
index e1fc2c1..037df09 100644
--- a/Tests/BundleGeneratorTest/CMakeLists.txt
+++ b/Tests/BundleGeneratorTest/CMakeLists.txt
@@ -1,23 +1,23 @@
-PROJECT(BundleGeneratorTest)
+project(BundleGeneratorTest)
-CMAKE_MINIMUM_REQUIRED(VERSION 2.7)
+cmake_minimum_required(VERSION 2.7)
# Build a shared library and install it in lib/
-ADD_LIBRARY(Library SHARED Library.cxx)
-INSTALL(TARGETS Library DESTINATION lib)
+add_library(Library SHARED Library.cxx)
+install(TARGETS Library DESTINATION lib)
# Build an executable and install it in bin/
-ADD_EXECUTABLE(Executable Executable.cxx)
-TARGET_LINK_LIBRARIES(Executable Library)
-INSTALL(TARGETS Executable DESTINATION bin)
+add_executable(Executable Executable.cxx)
+target_link_libraries(Executable Library)
+install(TARGETS Executable DESTINATION bin)
# Use the bundle-generator for packaging ...
-SET(CPACK_GENERATOR "Bundle")
-SET(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/BundleIcon.icns")
-SET(CPACK_BUNDLE_NAME "BundleGeneratorTest")
-SET(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist")
-SET(CPACK_BUNDLE_STARTUP_COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/StartupCommand")
-SET(CPACK_PACKAGE_DESCRIPTION "Project for testing OSX bundle generation")
+set(CPACK_GENERATOR "Bundle")
+set(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/BundleIcon.icns")
+set(CPACK_BUNDLE_NAME "BundleGeneratorTest")
+set(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist")
+set(CPACK_BUNDLE_STARTUP_COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/StartupCommand")
+set(CPACK_PACKAGE_DESCRIPTION "Project for testing OSX bundle generation")
# The custom volume icon is a copy of the normal Mac OSX volume icon, but
# on a white background. This is to differentiate it from the normal one
@@ -25,9 +25,9 @@ SET(CPACK_PACKAGE_DESCRIPTION "Project for testing OSX bundle generation")
# visual inspection of the mounted volume... This was added when fixing
# issue #7523...
#
-SET(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/CustomVolumeIcon.icns")
+set(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/CustomVolumeIcon.icns")
-SET(CPACK_PACKAGE_NAME "BundleGeneratorTest")
-SET(CPACK_PACKAGE_VERSION "0.1")
+set(CPACK_PACKAGE_NAME "BundleGeneratorTest")
+set(CPACK_PACKAGE_VERSION "0.1")
-INCLUDE(CPack)
+include(CPack)