mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
cmake configuration
This commit is contained in:
parent
f884dd858c
commit
2e933497ff
8 changed files with 390 additions and 0 deletions
93
test/CMakeLists.txt
Normal file
93
test/CMakeLists.txt
Normal file
|
@ -0,0 +1,93 @@
|
|||
|
||||
include_directories(${KDE4_INCLUDES} ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} )
|
||||
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set($(tests)_SRCS ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp)
|
||||
|
||||
if(KDE4_BUILD_TESTS)
|
||||
|
||||
kde4_add_executable($(tests) ${$(tests)_SRCS})
|
||||
|
||||
target_link_libraries($(tests) ${KDE4_KDECORE_LIBS})
|
||||
|
||||
endif(KDE4_BUILD_TESTS)
|
||||
|
||||
########### next target ###############
|
||||
|
||||
set(test_valgrind_SRCS test_valgrind.c $(test_sources))
|
||||
|
||||
if(KDE4_BUILD_TESTS)
|
||||
|
||||
kde4_add_executable(test_valgrind ${test_valgrind_SRCS})
|
||||
|
||||
target_link_libraries(test_valgrind ${KDE4_KDECORE_LIBS})
|
||||
|
||||
endif(KDE4_BUILD_TESTS)
|
||||
|
||||
########### install files ###############
|
||||
|
||||
|
||||
|
||||
|
||||
#original Makefile.am contents follow:
|
||||
|
||||
#include $(top_srcdir)/common.am
|
||||
#tests = \
|
||||
# test_rtsp \
|
||||
# test_wpas
|
||||
#
|
||||
#if BUILD_HAVE_CHECK
|
||||
#check_PROGRAMS = $(tests) test_valgrind
|
||||
#TESTS = $(tests) test_valgrind
|
||||
#MEMTESTS = $(tests)
|
||||
#endif
|
||||
#
|
||||
#test_sources = \
|
||||
# test_common.h
|
||||
#test_libs = \
|
||||
# ../src/shared/libmiracle-shared.la \
|
||||
# $(DEPS_LIBS) \
|
||||
# $(CHECK_LIBS)
|
||||
#test_cflags = \
|
||||
# $(AM_CPPFLAGS) \
|
||||
# $(DEPS_CFLAGS) \
|
||||
# $(CHECK_CFLAGS)
|
||||
#
|
||||
#test_rtsp_SOURCES = test_rtsp.c $(test_sources)
|
||||
#test_rtsp_CPPFLAGS = $(test_cflags)
|
||||
#test_rtsp_LDADD = $(test_libs)
|
||||
#
|
||||
#test_valgrind_SOURCES = test_valgrind.c $(test_sources)
|
||||
#test_valgrind_CPPFLAGS = $(test_cflags)
|
||||
#test_valgrind_LDADD = $(test_libs)
|
||||
#
|
||||
#test_wpas_SOURCES = test_wpas.c $(test_sources)
|
||||
#test_wpas_CPPFLAGS = $(test_cflags)
|
||||
#test_wpas_LDADD = $(test_libs)
|
||||
#
|
||||
### custom recipes
|
||||
#
|
||||
#VALGRIND = CK_FORK=no valgrind --tool=memcheck --leak-check=yes --show-reachable=yes --leak-resolution=high --error-exitcode=1 --suppressions=$(top_builddir)/test.supp
|
||||
#
|
||||
## verify that test_valgrind actually leaks data
|
||||
#memcheck-verify: check
|
||||
# $(AM_V_GEN)$(VALGRIND) --log-file=/dev/null ./test_valgrind >/dev/null ; test 1 = $$?
|
||||
#
|
||||
## run memcheck tests via valgrind
|
||||
#memcheck: memcheck-verify
|
||||
# $(AM_V_GEN)for i in $(MEMTESTS) ; do \
|
||||
# $(VALGRIND) --log-file=$(top_builddir)/$$i.memlog \
|
||||
# $(top_builddir)/$$i >/dev/null || (echo "memcheck failed on: $$i" ; exit 1) ; \
|
||||
# done
|
||||
#
|
||||
#distcheck-hook: memcheck
|
||||
#AM_MAKEFLAGS = --no-print-directory
|
||||
#AUTOMAKE_OPTIONS = color-tests
|
||||
#
|
||||
##
|
||||
## Phony targets
|
||||
##
|
||||
#
|
||||
#.PHONY: memcheck-verify
|
Loading…
Add table
Add a link
Reference in a new issue