Advertisement
justin_hanekom

Cmake variables

Nov 30th, 2018
761
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 7.38 KB | None | 0 0
  1. # File: cmake-variables.inc.txt
  2. # Copyright (c) 2019 Justin Hanekom <justin_hanekom@yahoo.com>
  3.  
  4. # Permission is hereby granted, free of charge, to any person obtaining a copy
  5. # of this software and associated documentation files (the "Software"), to deal
  6. # in the Software without restriction, including without limitation the rights
  7. # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. # copies of the Software, and to permit persons to whom the Software is
  9. # furnished to do so, subject to the following conditions:
  10. #
  11. # The above copyright notice and this permission notice shall be included in all
  12. # copies or substantial portions of the Software.
  13. #
  14. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  20. # SOFTWARE.
  21.  
  22. # if you are building in-source, this is the same as CMAKE_SOURCE_DIR, otherwise
  23. # this is the top level directory of your build tree
  24. MESSAGE( STATUS "CMAKE_BINARY_DIR:         " ${CMAKE_BINARY_DIR} )
  25.  
  26. # if you are building in-source, this is the same as CMAKE_CURRENT_SOURCE_DIR, otherwise this
  27. # is the directory where the compiled or generated files from the current CMakeLists.txt will go to
  28. MESSAGE( STATUS "CMAKE_CURRENT_BINARY_DIR: " ${CMAKE_CURRENT_BINARY_DIR} )
  29.  
  30. # this is the directory, from which cmake was started, i.e. the top level source directory
  31. MESSAGE( STATUS "CMAKE_SOURCE_DIR:         " ${CMAKE_SOURCE_DIR} )
  32.  
  33. # this is the directory where the currently processed CMakeLists.txt is located in
  34. MESSAGE( STATUS "CMAKE_CURRENT_SOURCE_DIR: " ${CMAKE_CURRENT_SOURCE_DIR} )
  35.  
  36. # contains the full path to the top level directory of your build tree
  37. MESSAGE( STATUS "PROJECT_BINARY_DIR: " ${PROJECT_BINARY_DIR} )
  38.  
  39. # contains the full path to the root of your project source directory,
  40. # i.e. to the nearest directory where CMakeLists.txt contains the PROJECT() command
  41. MESSAGE( STATUS "PROJECT_SOURCE_DIR: " ${PROJECT_SOURCE_DIR} )
  42.  
  43. # set this variable to specify a common place where CMake should put all executable files
  44. # (instead of CMAKE_CURRENT_BINARY_DIR)
  45. MESSAGE( STATUS "EXECUTABLE_OUTPUT_PATH: " ${EXECUTABLE_OUTPUT_PATH} )
  46.  
  47. # set this variable to specify a common place where CMake should put all libraries
  48. # (instead of CMAKE_CURRENT_BINARY_DIR)
  49. MESSAGE( STATUS "LIBRARY_OUTPUT_PATH:     " ${LIBRARY_OUTPUT_PATH} )
  50.  
  51. # tell CMake to search first in directories listed in CMAKE_MODULE_PATH
  52. # when you use FIND_PACKAGE() or INCLUDE()
  53. MESSAGE( STATUS "CMAKE_MODULE_PATH: " ${CMAKE_MODULE_PATH} )
  54.  
  55. # this is the complete path of the cmake which runs currently (e.g. /usr/local/bin/cmake)
  56. MESSAGE( STATUS "CMAKE_COMMAND: " ${CMAKE_COMMAND} )
  57.  
  58. # this is the CMake installation directory
  59. MESSAGE( STATUS "CMAKE_ROOT: " ${CMAKE_ROOT} )
  60.  
  61. # this is the filename including the complete path of the file where this variable is used.
  62. MESSAGE( STATUS "CMAKE_CURRENT_LIST_FILE: " ${CMAKE_CURRENT_LIST_FILE} )
  63.  
  64. # this is linenumber where the variable is used
  65. MESSAGE( STATUS "CMAKE_CURRENT_LIST_LINE: " ${CMAKE_CURRENT_LIST_LINE} )
  66.  
  67. # this is used when searching for include files e.g. using the FIND_PATH() command.
  68. MESSAGE( STATUS "CMAKE_INCLUDE_PATH: " ${CMAKE_INCLUDE_PATH} )
  69.  
  70. # this is used when searching for libraries e.g. using the FIND_LIBRARY() command.
  71. MESSAGE( STATUS "CMAKE_LIBRARY_PATH: " ${CMAKE_LIBRARY_PATH} )
  72.  
  73. # the complete system name, e.g. "Linux-2.4.22", "FreeBSD-5.4-RELEASE" or "Windows 5.1"
  74. MESSAGE( STATUS "CMAKE_SYSTEM: " ${CMAKE_SYSTEM} )
  75.  
  76. # the short system name, e.g. "Linux", "FreeBSD" or "Windows"
  77. MESSAGE( STATUS "CMAKE_SYSTEM_NAME: " ${CMAKE_SYSTEM_NAME} )
  78.  
  79. # only the version part of CMAKE_SYSTEM
  80. MESSAGE( STATUS "CMAKE_SYSTEM_VERSION: " ${CMAKE_SYSTEM_VERSION} )
  81.  
  82. # the processor name (e.g. "Intel(R) Pentium(R) M processor 2.00GHz")
  83. MESSAGE( STATUS "CMAKE_SYSTEM_PROCESSOR: " ${CMAKE_SYSTEM_PROCESSOR} )
  84.  
  85. # is TRUE on all UNIX-like OS's, including Apple OS X and CygWin
  86. MESSAGE( STATUS "UNIX: " ${UNIX} )
  87.  
  88. # is TRUE on Windows, including CygWin
  89. MESSAGE( STATUS "WIN32: " ${WIN32} )
  90.  
  91. # is TRUE on Apple OS X
  92. MESSAGE( STATUS "APPLE: " ${APPLE} )
  93.  
  94. # is TRUE when using the MinGW compiler in Windows
  95. MESSAGE( STATUS "MINGW: " ${MINGW} )
  96.  
  97. # is TRUE on Windows when using the CygWin version of cmake
  98. MESSAGE( STATUS "CYGWIN: " ${CYGWIN} )
  99.  
  100. # is TRUE on Windows when using a Borland compiler
  101. MESSAGE( STATUS "BORLAND: " ${BORLAND} )
  102.  
  103. # Microsoft compiler
  104. MESSAGE( STATUS "MSVC: " ${MSVC} )
  105. MESSAGE( STATUS "MSVC_IDE: " ${MSVC_IDE} )
  106. MESSAGE( STATUS "MSVC60: " ${MSVC60} )
  107. MESSAGE( STATUS "MSVC70: " ${MSVC70} )
  108. MESSAGE( STATUS "MSVC71: " ${MSVC71} )
  109. MESSAGE( STATUS "MSVC80: " ${MSVC80} )
  110. MESSAGE( STATUS "CMAKE_COMPILER_2005: " ${CMAKE_COMPILER_2005} )
  111.  
  112.  
  113. # set this to true if you don't want to rebuild the object files if the rules have changed,
  114. # but not the actual source files or headers (e.g. if you changed the some compiler switches)
  115. MESSAGE( STATUS "CMAKE_SKIP_RULE_DEPENDENCY: " ${CMAKE_SKIP_RULE_DEPENDENCY} )
  116.  
  117. # since CMake 2.1 the install rule depends on all, i.e. everything will be built before installing.
  118. # If you don't like this, set this one to true.
  119. MESSAGE( STATUS "CMAKE_SKIP_INSTALL_ALL_DEPENDENCY: " ${CMAKE_SKIP_INSTALL_ALL_DEPENDENCY} )
  120.  
  121. # If set, runtime paths are not added when using shared libraries. Default it is set to OFF
  122. MESSAGE( STATUS "CMAKE_SKIP_RPATH: " ${CMAKE_SKIP_RPATH} )
  123.  
  124. # set this to true if you are using makefiles and want to see the full compile and link
  125. # commands instead of only the shortened ones
  126. MESSAGE( STATUS "CMAKE_VERBOSE_MAKEFILE: " ${CMAKE_VERBOSE_MAKEFILE} )
  127.  
  128. # this will cause CMake to not put in the rules that re-run CMake. This might be useful if
  129. # you want to use the generated build files on another machine.
  130. MESSAGE( STATUS "CMAKE_SUPPRESS_REGENERATION: " ${CMAKE_SUPPRESS_REGENERATION} )
  131.  
  132.  
  133. # A simple way to get switches to the compiler is to use ADD_DEFINITIONS().
  134. # But there are also two variables exactly for this purpose:
  135.  
  136. # the compiler flags for compiling C sources
  137. MESSAGE( STATUS "CMAKE_C_FLAGS: " ${CMAKE_C_FLAGS} )
  138.  
  139. # the compiler flags for compiling C++ sources
  140. MESSAGE( STATUS "CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS} )
  141.  
  142.  
  143. # Choose the type of build.  Example: SET(CMAKE_BUILD_TYPE Debug)
  144. MESSAGE( STATUS "CMAKE_BUILD_TYPE: " ${CMAKE_BUILD_TYPE} )
  145.  
  146. # if this is set to ON, then all libraries are built as shared libraries by default.
  147. MESSAGE( STATUS "BUILD_SHARED_LIBS: " ${BUILD_SHARED_LIBS} )
  148.  
  149. # the compiler used for C files
  150. MESSAGE( STATUS "CMAKE_C_COMPILER: " ${CMAKE_C_COMPILER} )
  151.  
  152. # the compiler used for C++ files
  153. MESSAGE( STATUS "CMAKE_CXX_COMPILER: " ${CMAKE_CXX_COMPILER} )
  154.  
  155. # if the compiler is a variant of gcc, this should be set to 1
  156. MESSAGE( STATUS "CMAKE_COMPILER_IS_GNUCC: " ${CMAKE_COMPILER_IS_GNUCC} )
  157.  
  158. # if the compiler is a variant of g++, this should be set to 1
  159. MESSAGE( STATUS "CMAKE_COMPILER_IS_GNUCXX : " ${CMAKE_COMPILER_IS_GNUCXX} )
  160.  
  161. # the tools for creating libraries
  162. MESSAGE( STATUS "CMAKE_AR: " ${CMAKE_AR} )
  163. MESSAGE( STATUS "CMAKE_RANLIB: " ${CMAKE_RANLIB} )
  164.  
  165. #MESSAGE( STATUS ": " ${} )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement