3 Commits

Author SHA1 Message Date
merlinthered
e878d6f203 Export BACKWARD_[...] CMake variables as cache variables
If we do not export the variables set in BackwardMacros.cmake as cache variables, they will not be visible wherever add_backward() is called, and the macro will do nothing.

Also, fix typo `BACKWARD_INCLUDE_DIR` -> `BACKWARD_INCLUDE_DIRS`
2016-09-27 08:40:10 +02:00
Marc Strämke
f3b9f5c8cd Add current List directory so that BackwardMacros.cmake correctly includes the directory 2016-06-11 13:54:42 +02:00
Anton Kreuzkamp
3f61553ff8 Split off cmake macros and dependency detection.
This commit seperates some of the CMake code into a
BackwardMacros.cmake file. Including the CMakeLists.txt with
add_subdirectory doesn't work, because the variables it defines won't
be available from the including CMakeLists. With a .cmake file, they
will.

This change is backward-compatible, because CMakeLists.txt includes
the BackwardMacros.cmake as well.
2016-04-07 18:15:18 +02:00