diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2012-02-17 17:41:39 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2012-02-17 17:41:39 (GMT) |
commit | 9090572f5cdde7b30d2c1ad1c0bbf4ab86ddb969 (patch) | |
tree | 4069a3f908fd7d1fa0709c774ad476152f4dcd77 /Tests/CMakeOnly/ProjectInclude | |
parent | e2042b68d36e0881bfc00f926a275dda3d6cbc9d (diff) | |
download | CMake-9090572f5cdde7b30d2c1ad1c0bbf4ab86ddb969.zip CMake-9090572f5cdde7b30d2c1ad1c0bbf4ab86ddb969.tar.gz CMake-9090572f5cdde7b30d2c1ad1c0bbf4ab86ddb969.tar.bz2 |
Add ability to include a file in a project via a cache variable.
If a variable exists called CMAKE_PROJECT_<projectName>_INCLUDE,
the file pointed to by that variable will be included as the last step
of the project command.
Diffstat (limited to 'Tests/CMakeOnly/ProjectInclude')
-rw-r--r-- | Tests/CMakeOnly/ProjectInclude/CMakeLists.txt | 4 | ||||
-rw-r--r-- | Tests/CMakeOnly/ProjectInclude/include.cmake | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CMakeOnly/ProjectInclude/CMakeLists.txt b/Tests/CMakeOnly/ProjectInclude/CMakeLists.txt new file mode 100644 index 0000000..a9abb4a --- /dev/null +++ b/Tests/CMakeOnly/ProjectInclude/CMakeLists.txt @@ -0,0 +1,4 @@ +project(ProjectInclude) +if(NOT AUTO_INCLUDE) + message(FATAL_ERROR "include file not found") +endif() diff --git a/Tests/CMakeOnly/ProjectInclude/include.cmake b/Tests/CMakeOnly/ProjectInclude/include.cmake new file mode 100644 index 0000000..527ebe7 --- /dev/null +++ b/Tests/CMakeOnly/ProjectInclude/include.cmake @@ -0,0 +1 @@ +set(AUTO_INCLUDE TRUE) |