diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-01-20 23:39:19 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-01-20 23:39:19 +0100 |
commit | 3770c5dc8f0718d849eb1d73c29c0b33db253c49 (patch) | |
tree | daa16310c552ef96e040aea17130e6fb23d29311 /cmocka-config.cmake.in | |
parent | 11df27bbf33664611840abca158d4f75e79eaa0b (diff) | |
download | cmocka-3770c5dc8f0718d849eb1d73c29c0b33db253c49.tar.gz cmocka-3770c5dc8f0718d849eb1d73c29c0b33db253c49.tar.bz2 cmocka-3770c5dc8f0718d849eb1d73c29c0b33db253c49.zip |
cmake: Add cmake config mode support.
Diffstat (limited to 'cmocka-config.cmake.in')
-rw-r--r-- | cmocka-config.cmake.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmocka-config.cmake.in b/cmocka-config.cmake.in new file mode 100644 index 0000000..10aecb4 --- /dev/null +++ b/cmocka-config.cmake.in @@ -0,0 +1,11 @@ +get_filename_component(CMOCKA_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) + +if (EXISTS "${CMOCKA_CMAKE_DIR}/CMakeCache.txt") + # In build tree + include(${CMOCKA_CMAKE_DIR}/cmocka-build-tree-settings.cmake) +else() + set(CMOCKA_INCLUDE_DIR @INCLUDE_INSTALL_DIR@) +endif() + +set(CMOCKA_LIRBARY @LIB_INSTALL_DIR@/cmocka.so) +set(CMOCKA_LIRBARIES @LIB_INSTALL_DIR@/cmocka.so) |