From: brarcher Date: Tue, 4 Feb 2014 00:35:56 +0000 (+0000) Subject: cmake: install a check.cmake file to help configure projects X-Git-Tag: 0.10.0~127 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11aebb99d0c38abfe4bc11b0f081e3c48ff6fbc9;p=check cmake: install a check.cmake file to help configure projects If CMake was used to compile and install Check, then a check.cmake file was generated and installed along with the library. If a project wants to link against Check in this situation, then the project will need to include that check.cmake file. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1090 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6600695..dae28fc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -56,8 +56,10 @@ if(MSVC) endif (MSVC) install(TARGETS check + EXPORT check RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) install(FILES ${CMAKE_BINARY_DIR}/src/check.h DESTINATION include) +install(EXPORT check DESTINATION cmake)