This website requires JavaScript.
Explore
Help
Sign In
kolan
/
CMake
Watch
1
Star
0
Fork
You've already forked CMake
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
44ffb9cdb4
CMake
/
Tests
/
RunCMake
/
include_directories
/
CMakeLists.txt
4 lines
99 B
CMake
Raw
Normal View
History
Unescape
Escape
Export: Disallow exported interface includes in src/build tree (#14592). Allow directories in the source tree or build tree only if the install tree is a subdirectory of the source tree or build tree, as appropriate. Re-use the test files in the RunCMake.include_directories test to run in multiple scenarios. Bump the required CMake version in the test to 3.0 to ensure that the new policy warnings are emitted correctly.
2014-03-31 19:37:02 +04:00
cmake_minimum_required
(
VERSION
3.0
)
Tests: Speed up RunCMake.include_directories test Remove unnecessary language initializations. Change the main CMakeLists.txt project() call to specify NONE. Use enable_language(CXX) instead of project() in cases that need it to avoid enabling C too.
2014-06-30 22:37:38 +04:00
project
(
${
RunCMake_TEST
}
NONE
)
Tests: Split part of include_directories test to a generic location. The moved tests are related to paths in INTERFACE_INCLUDE_DIRECTORIES in general, and when exporting, and covering cases of the install location being within the build or source prefix etc. Other build properties containing paths should have similar tests, so this allows some parameterization while keeping the preparation of the various directory structures.
2014-11-30 15:20:32 +03:00
include
(
${
RunCMake_TEST
}
.cmake
)