diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-04-04 18:20:22 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-04-08 12:37:34 -0700 |
commit | 3acbb5681a43e18cce1e34694773cfe18cc2391d (patch) | |
tree | d46c05eeebe3142e30c98f495c8612419bd3b7bb | |
parent | 04ee0d87f02a9b498c7ee2e5f652fa1f47b50c0e (diff) |
cmake: Add cache vars for install paths
waffle_install_includedir
waffle_install_libdir
waffle_install_docdir
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 129950e..67be257 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,6 +49,15 @@ endif(CMAKE_SYSTEM_NAME STREQUAL "Linux") option(waffle_build_tests "Build tests" ON) option(waffle_build_examples "Build examples" ON) +set(waffle_install_includedir "${CMAKE_INSTALL_PREFIX}/include" + CACHE PATH "Directory where header files will be installed") + +set(waffle_install_libdir "${CMAKE_INSTALL_PREFIX}/lib" + CACHE PATH "Directory where libraries will be installed") + +set(waffle_install_docdir "${CMAKE_INSTALL_PREFIX}/share/doc/waffle" + CACHE PATH "Directory where documentation will be installed") + # # Set waffle_default_platform. # @@ -245,4 +254,9 @@ message(" cc: ${CMAKE_C_COMPILER}") message(" CFLAGS_base: ${CMAKE_C_FLAGS}") message(" CFLAGS_debug: ${CMAKE_C_FLAGS_DEBUG}") message(" CFLAGS_release: ${CMAKE_C_FLAGS_RELEASE}") +message("") +message("Install paths:") +message(" includedir: ${waffle_install_libdir}") +message(" libdir: ${waffle_install_libdir}") +message(" docdir: ${waffle_install_docdir}") message("-----------------------------------------------") |