mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
d1526f825e
Rename cmSystemTools::FindExecutableDirectory to FindCMakeResources. Teach it to compute the locations of cmake, ctest, cpack, ccmake, and cmake-gui executables, and the location of CMAKE_ROOT. Provide this information from static cmSystemTools::Get<resource>() methods. Refactor code that needs these locations to use the new APIs. Teach FindCMakeResources to use the OS X system API to lookup the executable location. When running from the CMake build tree itself, leave a file in the tree that FindCMakeResources can use to read the location of the source tree. This avoids the need to compile the source tree location into a binary that may be installed and used without the source tree. Teach the QtDialog on OS X to create a "cmake-gui" symlink in the build tree next to "cmake" and the other tools, as is already done in the install tree for the application bundle. This ensures a consistent set of executables are available in one directory.
20 lines
879 B
C
20 lines
879 B
C
/*============================================================================
|
|
CMake - Cross Platform Makefile Generator
|
|
Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
|
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
see accompanying file Copyright.txt for details.
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
See the License for more information.
|
|
============================================================================*/
|
|
#cmakedefine CMAKE_NO_STD_NAMESPACE
|
|
#cmakedefine CMAKE_NO_ANSI_STREAM_HEADERS
|
|
#cmakedefine CMAKE_NO_ANSI_STRING_STREAM
|
|
#cmakedefine CMAKE_NO_ANSI_FOR_SCOPE
|
|
#cmakedefine HAVE_ENVIRON_NOT_REQUIRE_PROTOTYPE
|
|
#cmakedefine HAVE_UNSETENV
|
|
#cmakedefine CMAKE_USE_ELF_PARSER
|
|
#define CMAKE_DATA_DIR "/@CMAKE_DATA_DIR@"
|