summaryrefslogtreecommitdiff
path: root/cmocka-config.cmake.in
blob: 0890d71bc23d1dddea68278aebdf16b99db92205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@PACKAGE_INIT@

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 @PACKAGE_INCLUDE_INSTALL_DIR@)
endif()

set(CMOCKA_LIBRARY @PACKAGE_LIB_INSTALL_DIR@/@CMOCKA_LIBRARY_NAME@)
set(CMOCKA_LIBRARIES @PACKAGE_LIB_INSTALL_DIR@/@CMOCKA_LIBRARY_NAME@)

mark_as_advanced(CMOCKA_LIBRARY CMOCKA_INCLUDE_DIR)