Add pkgconfig for bctoolbox-tester

parent 2a4cf67d
......@@ -83,6 +83,10 @@ if(ENABLE_TESTS)
check_symbol_exists("CU_get_suite" "CUnit/CUnit.h" HAVE_CU_GET_SUITE)
check_symbol_exists("CU_curses_run_tests" "CUnit/CUnit.h" HAVE_CU_CURSES)
cmake_pop_check_state()
get_filename_component(cunit_library_path "${CUNIT_LIBRARIES}" PATH)
set(TESTER_LIBS_PRIVATE "-L${cunit_library_path} -lcunit")
else()
message(WARNING "Could not find the cunit library!")
endif()
......@@ -91,6 +95,10 @@ endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/bctoolbox.pc.in ${CMAKE_CURRENT_BINARY_DIR}/bctoolbox.pc)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bctoolbox.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
if(ENABLE_TESTS)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/bctoolbox-tester.pc.in ${CMAKE_CURRENT_BINARY_DIR}/bctoolbox-tester.pc)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/bctoolbox-tester.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
endif()
include_directories(
include
......
# This is a comment
prefix=@CMAKE_INSTALL_PREFIX@
Name: bctoolbox-tester
Description: A common set of tester wrappers used by Belledonne Communications's softwares
Requires.private: @REQUIRES_PRIVATE@
Version: @PROJECT_VERSION@
Libs: -L@CMAKE_INSTALL_FULL_LIBDIR@ -lbctoolbox-tester
Libs.private: @TESTER_LIBS_PRIVATE@
Cflags: -I@CMAKE_INSTALL_FULL_INCLUDEDIR@
......@@ -2,9 +2,9 @@
prefix=@CMAKE_INSTALL_PREFIX@
Name: @PROJECT_NAME@
Description: A common set of tools used by Belledonne Communications's softwares
Requires.private: @REQUIRES_PRIVATE@ @TLS_PC@
Description: A common set of tools used by Belledonne Communications's softwares
Requires.private: @REQUIRES_PRIVATE@
Version: @PROJECT_VERSION@
Libs: -L@CMAKE_INSTALL_FULL_LIBDIR@ -lbctoolbox
Libs.private: @LIBS_PRIVATE@
Cflags: -I@CMAKE_INSTALL_FULL_INCLUDEDIR@
Cflags: -I@CMAKE_INSTALL_FULL_INCLUDEDIR@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment