mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-12 20:01:56 +00:00
Fix test suite on cmake
This commit is contained in:
parent
442103a333
commit
c6d645d720
2 changed files with 16 additions and 11 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -35,3 +35,7 @@ test_valgrind
|
||||||
test_wpas
|
test_wpas
|
||||||
wpa_cli
|
wpa_cli
|
||||||
wpa_supplicant
|
wpa_supplicant
|
||||||
|
CMakeFiles/
|
||||||
|
cmake_install.cmake
|
||||||
|
CMakeCache.txt
|
||||||
|
libmiracle-shared.a
|
||||||
|
|
|
@ -4,21 +4,22 @@
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
pkg_check_modules (CHECK check)
|
pkg_check_modules (CHECK check)
|
||||||
|
|
||||||
|
set(test_rtsp_SOURCES test_common.h test_rtsp.c)
|
||||||
|
add_executable(test_rtsp ${test_rtsp_SOURCES})
|
||||||
|
target_link_libraries(test_rtsp miracle-shared)
|
||||||
|
target_link_libraries(test_rtsp ${UDEV_LIBRARIES})
|
||||||
|
target_link_libraries(test_rtsp ${GLIB2_LIBRARIES})
|
||||||
|
|
||||||
|
set(test_wpas_SOURCES test_common.h test_wpas.c)
|
||||||
|
add_executable(test_wpas ${test_wpas_SOURCES})
|
||||||
|
target_link_libraries(test_wpas miracle-shared)
|
||||||
|
target_link_libraries(test_wpas ${UDEV_LIBRARIES})
|
||||||
|
target_link_libraries(test_wpas ${GLIB2_LIBRARIES})
|
||||||
|
|
||||||
if(CHECK_FOUND)
|
if(CHECK_FOUND)
|
||||||
|
|
||||||
set(test_rtsp_SOURCES test_common.h test_rtsp.c)
|
|
||||||
add_executable(test_rtsp ${test_rtsp_SOURCES})
|
|
||||||
target_link_libraries(test_rtsp miracle-shared)
|
|
||||||
target_link_libraries(test_rtsp ${CHECK_LIBRARIES})
|
target_link_libraries(test_rtsp ${CHECK_LIBRARIES})
|
||||||
target_link_libraries(test_rtsp ${UDEV_LIBRARIES})
|
|
||||||
target_link_libraries(test_rtsp ${GLIB2_LIBRARIES})
|
|
||||||
|
|
||||||
set(test_wpas_SOURCES test_common.h test_wpas.c)
|
|
||||||
add_executable(test_wpas ${test_wpas_SOURCES})
|
|
||||||
target_link_libraries(test_wpas miracle-shared)
|
|
||||||
target_link_libraries(test_wpas ${CHECK_LIBRARIES})
|
target_link_libraries(test_wpas ${CHECK_LIBRARIES})
|
||||||
target_link_libraries(test_wpas ${UDEV_LIBRARIES})
|
|
||||||
target_link_libraries(test_wpas ${GLIB2_LIBRARIES})
|
|
||||||
|
|
||||||
set(test_valgrind_SOURCES test_common.h test_valgrind.c)
|
set(test_valgrind_SOURCES test_common.h test_valgrind.c)
|
||||||
add_executable(test_valgrind ${test_valgrind_SOURCES})
|
add_executable(test_valgrind ${test_valgrind_SOURCES})
|
||||||
|
|
Loading…
Reference in a new issue