Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Run cmake-bulk-decrufter.

  • Loading branch information...
commit 7ff9c5366e55166466072aa27bfb7e109cb258d0 1 parent 0873f79
@rpavlik authored
View
2  AboutTheseModules.cmake
@@ -22,7 +22,7 @@
# need to call:
# include(BoostTestTargets)
#
-# For more information, see the documentation for individual modules, the
+# For more information, see the documentation for individual modules, the
# cmake-modules github page, and/or the upstream CMake documentation at
# http://www.cmake.org/cmake/help/cmake-2-8-docs.html
#
View
8 BundleOSGPlugins.cmake
@@ -82,8 +82,12 @@ function(install_osg_plugins var)
list(APPEND INSTALLEDPLUGINS "${OSG_PATH_TO_PLUGINS}/${name}")
endforeach()
foreach(plugin ${OSGDB_PLUGINS_DEBUG} ${OSGWRAPPER_PLUGINS_DEBUG})
- install(FILES "${plugin}" DESTINATION "${OSG_PATH_TO_PLUGINS}"
- CONFIGURATIONS Debug)
+ install(FILES
+ "${plugin}"
+ DESTINATION
+ "${OSG_PATH_TO_PLUGINS}"
+ CONFIGURATIONS
+ Debug)
#get_filename_component(name "${plugin}" NAME)
#list(APPEND INSTALLEDPLUGINS "${OSG_PATH_TO_PLUGINS}/${name}")
endforeach()
View
2  CreateLaunchers.cmake
@@ -97,7 +97,7 @@ macro(_launcher_system_settings)
set(LAUNCHERS_GOT_GDB YES)
if(GDB_HAS_RETURN_CHILD_RESULT)
set(LAUNCHERS_GDB_ARG --return-child-result)
- endif()
+ endif()
else()
set(LAUNCHERS_GOT_GDB)
endif()
View
4 FileCopyTargets.cmake
@@ -54,7 +54,9 @@ function(add_file_copy_target _target _dest)
get_filename_component(fullpath "${fn}" ABSOLUTE)
get_filename_component(fn "${fn}" NAME)
else()
- get_filename_component(fullpath "${CMAKE_CURRENT_SOURCE_DIR}/${fn}" ABSOLUTE)
+ get_filename_component(fullpath
+ "${CMAKE_CURRENT_SOURCE_DIR}/${fn}"
+ ABSOLUTE)
endif()
# Clean up output file name
View
10 FindDirectInput.cmake
@@ -99,7 +99,9 @@ find_library(DIRECTINPUT_DXGUID_LIBRARY
${_lib_suffixes})
if(DIRECTINPUT_DXGUID_LIBRARY)
- get_filename_component(_dinput_lib_dir ${DIRECTINPUT_DXGUID_LIBRARY} PATH)
+ get_filename_component(_dinput_lib_dir
+ ${DIRECTINPUT_DXGUID_LIBRARY}
+ PATH)
endif()
find_library(DIRECTINPUT_DINPUT_LIBRARY
@@ -167,14 +169,12 @@ if(DIRECTINPUT_FOUND)
"${DIRECTINPUT_DXERR_LIBRARY}"
"${DIRECTINPUT_DINPUT_LIBRARY}")
- set(DIRECTINPUT_INCLUDE_DIRS
- "${DIRECTINPUT_INCLUDE_DIR}")
+ set(DIRECTINPUT_INCLUDE_DIRS "${DIRECTINPUT_INCLUDE_DIR}")
mark_as_advanced(DIRECTINPUT_ROOT_DIR)
endif()
-mark_as_advanced(
- DIRECTINPUT_DINPUT_LIBRARY
+mark_as_advanced(DIRECTINPUT_DINPUT_LIBRARY
DIRECTINPUT_DXGUID_LIBRARY
DIRECTINPUT_DXERR_LIBRARY
DIRECTINPUT_INCLUDE_DIR)
View
24 FindGDB.cmake
@@ -36,17 +36,31 @@ find_program(GDB_COMMAND
libexec)
if(GDB_COMMAND)
- execute_process(COMMAND gdb --version
- COMMAND head -n 1
- OUTPUT_VARIABLE GDB_VERSION
+ execute_process(COMMAND
+ gdb
+ --version
+ COMMAND
+ head
+ -n
+ 1
+ OUTPUT_VARIABLE
+ GDB_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)
- string(REGEX REPLACE "[^0-9]*([0-9]+[0-9.]*).*" "\\1" GDB_VERSION "${GDB_VERSION}")
+ string(REGEX
+ REPLACE
+ "[^0-9]*([0-9]+[0-9.]*).*"
+ "\\1"
+ GDB_VERSION
+ "${GDB_VERSION}")
endif()
# handle the QUIETLY and REQUIRED arguments and set xxx_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(GDB DEFAULT_MSG GDB_COMMAND GDB_VERSION)
+find_package_handle_standard_args(GDB
+ DEFAULT_MSG
+ GDB_COMMAND
+ GDB_VERSION)
if(GDB_FOUND)
mark_as_advanced(GDB_ROOT_DIR)
View
4 FindLibusb1.cmake
@@ -29,7 +29,7 @@ set(LIBUSB1_ROOT_DIR
CACHE
PATH
"Root directory to search for libusb-1")
-
+
if(WIN32)
include(ProgramFilesGlob)
program_files_fallback_glob(_dirs "LibUSB-Win32")
@@ -42,7 +42,7 @@ if(WIN32)
set(_lib_suffixes lib/msvc)
elseif(COMPILER_IS_GNUCXX)
set(_lib_suffixes lib/gcc)
- endif()
+ endif()
endif()
else()
set(_lib_suffixes)
View
6 FindLyX.cmake
@@ -65,9 +65,7 @@ mark_as_advanced(LYX_COMMAND)
function(lyx_export _format _extension _outvar)
set(_nowhere)
set(_curdest _nowhere)
- set(_val_args
- EXTRA_DEPS
- INPUT)
+ set(_val_args EXTRA_DEPS INPUT)
set(_bool_args OUTPUT_TO_SOURCE_DIR)
foreach(_arg ${_val_args} ${_bool_args})
set(${_arg})
@@ -99,7 +97,7 @@ function(lyx_export _format _extension _outvar)
else()
set(_outname "${CMAKE_CURRENT_SOURCE_DIR}/${_base}.${_extension}")
endif()
-
+
list(APPEND _out "${_outname}")
if(LYX_COMMAND)
add_custom_command(OUTPUT "${_outname}"
View
6 FindOpenCV.cmake
@@ -73,7 +73,11 @@ else()
otherlibs/_graphics/include)
# library linkdir suffixes appended to OPENCV_BASE_DIR
- set(OPENCV_LIBDIR_SUFFIXES lib lib64 OpenCV/lib otherlibs/_graphics/lib)
+ set(OPENCV_LIBDIR_SUFFIXES
+ lib
+ lib64
+ OpenCV/lib
+ otherlibs/_graphics/lib)
#
View
3  FindQVRPN.cmake
@@ -78,5 +78,4 @@ if(QVRPN_FOUND)
mark_as_advanced(QVRPN_ROOT_DIR)
endif()
-mark_as_advanced(QVRPN_LIBRARY
- QVRPN_INCLUDE_DIR)
+mark_as_advanced(QVRPN_LIBRARY QVRPN_INCLUDE_DIR)
View
5 FindTR1.cmake
@@ -70,7 +70,4 @@ endif()
# handle the QUIETLY and REQUIRED arguments and set xxx_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(TR1
- DEFAULT_MSG
- PLATFORM
- ${_check})
+find_package_handle_standard_args(TR1 DEFAULT_MSG PLATFORM ${_check})
View
5 FindVRJuggler.cmake
@@ -171,7 +171,10 @@ endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(VRJuggler
- DEFAULT_MSG VRJUGGLER_VERSION VRJUGGLER_LIBRARIES VRJUGGLER_FOUND)
+ DEFAULT_MSG
+ VRJUGGLER_VERSION
+ VRJUGGLER_LIBRARIES
+ VRJUGGLER_FOUND)
if(VRJUGGLER_FOUND)
mark_as_advanced(VRJUGGLER_ROOT_DIR)
View
12 FindWinHID.cmake
@@ -51,7 +51,10 @@ endif()
if(MSVC)
include(PrefixListGlob)
include(CleanDirectoryList)
- prefix_list_glob(_prefixed "*/" "$ENV{SYSTEMDRIVE}/WinDDK/" "c:/WinDDK/")
+ prefix_list_glob(_prefixed
+ "*/"
+ "$ENV{SYSTEMDRIVE}/WinDDK/"
+ "c:/WinDDK/")
clean_directory_list(_prefixed)
find_library(WINHID_LIBRARY
NAMES
@@ -138,13 +141,16 @@ if(WINHID_FOUND)
endif()
if(NOT "${WINHID_MIN_WINDOWS_VER}" STREQUAL "${_winreq}")
if(NOT WinHID_FIND_QUIETLY)
- message(STATUS "Linking against WINHID_LIBRARY will enforce this minimum version: ${_winreq}")
+ message(STATUS
+ "Linking against WINHID_LIBRARY will enforce this minimum version: ${_winreq}")
endif()
set(WINHID_MIN_WINDOWS_VER "${_winreq}" CACHE INTERNAL "" FORCE)
endif()
endif()
set(WINHID_LIBRARIES "${WINHID_LIBRARY}")
- set(WINHID_INCLUDE_DIRS "${WINHID_CRT_INCLUDE_DIR}" "${WINHID_INCLUDE_DIR}")
+ set(WINHID_INCLUDE_DIRS
+ "${WINHID_CRT_INCLUDE_DIR}"
+ "${WINHID_INCLUDE_DIR}")
mark_as_advanced(WINHID_ROOT_DIR)
endif()
View
9 Findcppcheck.cmake
@@ -102,11 +102,14 @@ if(CPPCHECK_EXECUTABLE)
_cppcheck_set_arg_var(CPPCHECK_STYLE_ARG "--style")
if("${CPPCHECK_STYLE_ARG}" STREQUAL "--enable=style")
- _cppcheck_set_arg_var(CPPCHECK_UNUSEDFUNC_ARG "--enable=unusedFunctions")
+ _cppcheck_set_arg_var(CPPCHECK_UNUSEDFUNC_ARG
+ "--enable=unusedFunctions")
_cppcheck_set_arg_var(CPPCHECK_INFORMATION_ARG "--enable=information")
- _cppcheck_set_arg_var(CPPCHECK_MISSINGINCLUDE_ARG "--enable=missingInclude")
+ _cppcheck_set_arg_var(CPPCHECK_MISSINGINCLUDE_ARG
+ "--enable=missingInclude")
_cppcheck_set_arg_var(CPPCHECK_POSIX_ARG "--enable=posix")
- _cppcheck_set_arg_var(CPPCHECK_POSSIBLEERROR_ARG "--enable=possibleError")
+ _cppcheck_set_arg_var(CPPCHECK_POSSIBLEERROR_ARG
+ "--enable=possibleError")
_cppcheck_set_arg_var(CPPCHECK_POSSIBLEERROR_ARG "--enable=all")
if(MSVC)
View
18 Findcutil.cmake
@@ -23,19 +23,27 @@ find_package(CUDA QUIET)
file(TO_CMAKE_PATH "${CUDA_SDK_ROOT_DIR}/C/common" CUTIL_ROOT_DIR)
if(NOT EXISTS "${CUTIL_ROOT_DIR}/src/cutil.cpp")
- set(CUDA_SDK_ROOT_DIR SDKDIR-NOTFOUND CACHE PATH "NVIDIA GPU Computing SDK dir" FORCE)
+ set(CUDA_SDK_ROOT_DIR
+ SDKDIR-NOTFOUND
+ CACHE
+ PATH
+ "NVIDIA GPU Computing SDK dir"
+ FORCE)
endif()
# handle the QUIETLY and REQUIRED arguments and set xxx_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(cutil DEFAULT_MSG CUDA_SDK_ROOT_DIR CUDA_FOUND)
+find_package_handle_standard_args(cutil
+ DEFAULT_MSG
+ CUDA_SDK_ROOT_DIR
+ CUDA_FOUND)
-if(CUTIL_FOUND)
+if(CUTIL_FOUND)
get_filename_component(_moddir "${CMAKE_CURRENT_LIST_FILE}" PATH)
add_subdirectory("${_moddir}/nested_targets/cutil")
-
-
+
+
function(install_cutil dest)
install(TARGETS cutil
RUNTIME DESTINATION "${dest}"
View
10 GetGitRevisionDescription.cmake
@@ -42,7 +42,7 @@ get_filename_component(_gitdescmoddir ${CMAKE_CURRENT_LIST_FILE} PATH)
function(get_git_head_revision _refspecvar _hashvar)
set(GIT_PARENT_DIR "${CMAKE_SOURCE_DIR}")
set(GIT_DIR "${GIT_PARENT_DIR}/.git")
- while(NOT EXISTS "${GIT_DIR}") # .git dir not found, search parent directories
+ while(NOT EXISTS "${GIT_DIR}") # .git dir not found, search parent directories
set(GIT_PREVIOUS_PARENT "${GIT_PARENT_DIR}")
get_filename_component(GIT_PARENT_DIR ${GIT_PARENT_DIR} PATH)
if(GIT_PARENT_DIR STREQUAL GIT_PREVIOUS_PARENT)
@@ -60,7 +60,9 @@ function(get_git_head_revision _refspecvar _hashvar)
set(HEAD_FILE "${GIT_DATA}/HEAD")
configure_file("${GIT_DIR}/HEAD" "${HEAD_FILE}" COPYONLY)
- configure_file("${_gitdescmoddir}/GetGitRevisionDescription.cmake.in" "${GIT_DATA}/grabRef.cmake" @ONLY)
+ configure_file("${_gitdescmoddir}/GetGitRevisionDescription.cmake.in"
+ "${GIT_DATA}/grabRef.cmake"
+ @ONLY)
include("${GIT_DATA}/grabRef.cmake")
set(${_refspecvar} "${HEAD_REF}" PARENT_SCOPE)
@@ -73,11 +75,11 @@ function(git_describe _var)
endif()
get_git_head_revision(refspec hash)
if(NOT GIT_FOUND)
- set(${_var} "GIT-NOTFOUND" PARENT_SCOPE)
+ set(${_var} "GIT-NOTFOUND" PARENT_SCOPE)
return()
endif()
if(NOT hash)
- set(${_var} "HEAD-HASH-NOTFOUND" PARENT_SCOPE)
+ set(${_var} "HEAD-HASH-NOTFOUND" PARENT_SCOPE)
return()
endif()
View
17 LuaTargets.cmake
@@ -42,14 +42,13 @@ function(add_lua_target _target _dest)
set(LUA_TARGET_LUAC_EXECUTABLE luac)
mark_as_advanced(LUA_TARGET_LUAC_EXECUTABLE)
else()
- find_program(LUA_TARGET_LUAC_EXECUTABLE
- NAMES
- luac)
+ find_program(LUA_TARGET_LUAC_EXECUTABLE NAMES luac)
endif()
endif()
if(NOT LUA_TARGET_LUAC_EXECUTABLE)
- message(FATAL_ERROR "Can't find luac: please give LUA_TARGET_LUAC_EXECUTABLE a useful value - currently ${LUA_TARGET_LUAC_EXECUTABLE}")
+ message(FATAL_ERROR
+ "Can't find luac: please give LUA_TARGET_LUAC_EXECUTABLE a useful value - currently ${LUA_TARGET_LUAC_EXECUTABLE}")
endif()
mark_as_advanced(LUA_TARGET_LUAC_EXECUTABLE)
@@ -61,7 +60,9 @@ function(add_lua_target _target _dest)
get_filename_component(fullpath "${fn}" ABSOLUTE)
get_filename_component(fn "${fn}" NAME)
else()
- get_filename_component(fullpath "${CMAKE_CURRENT_SOURCE_DIR}/${fn}" ABSOLUTE)
+ get_filename_component(fullpath
+ "${CMAKE_CURRENT_SOURCE_DIR}/${fn}"
+ ABSOLUTE)
endif()
# Clean up output file name
@@ -89,7 +90,11 @@ function(add_lua_target _target _dest)
SOURCES ${SOURCES}
DEPENDS ${ALLFILES})
if(TARGET "${LUA_TARGET_LUAC_EXECUTABLE}")
- get_property(_luac_imported TARGET "${LUA_TARGET_LUAC_EXECUTABLE}" PROPERTY IMPORTED)
+ get_property(_luac_imported
+ TARGET
+ "${LUA_TARGET_LUAC_EXECUTABLE}"
+ PROPERTY
+ IMPORTED)
if(NOT _luac_imported)
add_dependencies(${_target} ${LUA_TARGET_LUAC_EXECUTABLE})
endif()
View
13 OptionRequires.cmake
@@ -21,7 +21,7 @@ function(option_requires name desc)
list(REMOVE_AT args ${_off_found})
set(OFF_BY_DEFAULT true)
endif()
-
+
set(found)
set(missing)
foreach(var ${args})
@@ -31,22 +31,23 @@ function(option_requires name desc)
list(APPEND missing ${var})
endif()
endforeach()
-
+
if(NOT missing)
set(OK TRUE)
else()
set(OK FALSE)
endif()
-
+
set(default ${OK})
if(OFF_BY_DEFAULT)
set(default OFF)
endif()
-
+
option(${name} "${desc}" ${default})
-
+
if(${name} AND (NOT OK))
- message(FATAL_ERROR "${name} enabled but these dependencies were not valid: ${missing}")
+ message(FATAL_ERROR
+ "${name} enabled but these dependencies were not valid: ${missing}")
endif()
endfunction()
View
13 UseMarkdown.cmake
@@ -6,7 +6,7 @@
# with respect to CMAKE_CURRENT_BINARY_DIR. The RENAME argument is only
# valid with a single markdown file as input.
#
-#
+#
# install_markdown_target(<target_name> [extra arguments to INSTALL(FILES ...) ])
#
#
@@ -47,16 +47,17 @@ function(add_markdown_target _target _dest)
if(NOT MARKDOWN_EXECUTABLE)
message(FATAL_ERROR "Can't find a markdown conversion tool!")
endif()
-
+
set(NEW_NAME)
list(FIND ARGN "RENAME" _renameloc)
if(_renameloc GREATER -1)
list(LENGTH ARGN _len)
if(NOT _len EQUAL 3)
- message(FATAL_ERROR "Specifying RENAME requires 1 input file and 1 output name!")
+ message(FATAL_ERROR
+ "Specifying RENAME requires 1 input file and 1 output name!")
endif()
list(GET ARGN 2 NEW_NAME)
- list(GET ARGN 0 ARGN)
+ list(GET ARGN 0 ARGN)
endif()
set(ALLFILES)
@@ -67,7 +68,9 @@ function(add_markdown_target _target _dest)
get_filename_component(fullpath "${fn}" ABSOLUTE)
get_filename_component(fn "${fn}" NAME)
else()
- get_filename_component(fullpath "${CMAKE_CURRENT_SOURCE_DIR}/${fn}" ABSOLUTE)
+ get_filename_component(fullpath
+ "${CMAKE_CURRENT_SOURCE_DIR}/${fn}"
+ ABSOLUTE)
endif()
get_filename_component(fn_noext "${fn}" NAME_WE)
Please sign in to comment.
Something went wrong with that request. Please try again.