]> granicus.if.org Git - check/commitdiff
cmake: install a check.cmake file to help configure projects
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Tue, 4 Feb 2014 00:35:56 +0000 (00:35 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Tue, 4 Feb 2014 00:35:56 +0000 (00:35 +0000)
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

src/CMakeLists.txt

index 6600695dc9a2cf849c6b1c25a69de4dba8527c41..dae28fc6e4a9d142b404606110d1c68ac36b620a 100644 (file)
@@ -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)