diff --git a/CMakeLists.txt b/CMakeLists.txt index 51deddf..47f5716 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,10 +33,12 @@ install(TARGETS test_shared_library EXPORT test_shared_libraryConfig install(FILES ${CMAKE_BINARY_DIR}/test_shared_library.pc DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig) +# install exported packages install(EXPORT test_shared_libraryConfig DESTINATION share/test_shared_library/cmake) +export(TARGETS ${PROJECT_NAME} FILE test_shared_libraryConfig.cmake) - +# test executable add_executable(test_library test.c) target_link_libraries(test_library test_shared_library) - +# testing support with make test add_test(test_shared_lib_dynamic test_library)