Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
bctoolbox
Commits
258485d6
Commit
258485d6
authored
Mar 02, 2016
by
Gautier Pelloux-Prayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pkgconfig for bctoolbox-tester
parent
2a4cf67d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
CMakeLists.txt
CMakeLists.txt
+8
-0
bctoolbox-tester.pc.in
bctoolbox-tester.pc.in
+10
-0
bctoolbox.pc.in
bctoolbox.pc.in
+3
-3
No files found.
CMakeLists.txt
View file @
258485d6
...
...
@@ -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
...
...
bctoolbox-tester.pc.in
0 → 100644
View file @
258485d6
# 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@
bctoolbox.pc.in
View file @
258485d6
...
...
@@ -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@
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment