utest: rename the ut to the utests
[platform/core/uifw/libtdm.git] / utests / Makefile.am
1 bin_PROGRAMS = tdm-utests
2
3 tdm_utests_SOURCES = \
4         src/main_tests.cpp \
5         src/ut_tdm.cpp \
6         src/ut_tdm_backend.cpp \
7         src/ut_tdm_buffer.cpp \
8         src/ut_tdm_capture.cpp \
9         src/ut_tdm_display.cpp \
10         src/ut_tdm_event_loop.cpp \
11         src/ut_tdm_helper.cpp \
12         src/ut_tdm_pp.cpp \
13         src/ut_tdm_thread.cpp \
14         src/ut_tdm_vblank.cpp \
15         stubs/tbm_stubs.cpp \
16         stubs/tdm_log.cpp \
17         stubs/tdm_server.cpp \
18         stubs/stub_pthread.cpp \
19         stubs/stub_dlfcn.cpp \
20         stubs/stub_stdlib.cpp \
21         stubs/tdm_backend_module_subs.cpp \
22         stubs/stub_unistd.cpp \
23         stubs/stub_backend.cpp
24
25 tdm_utests_CXXFLAGS = \
26         $(CXXFLAGS) \
27         $(TDM_CFLAGS) \
28         -I../src \
29         -I../include \
30         -I./src \
31         -I./stubs \
32         -I$(includedir)/gtest \
33         -fpermissive \
34         -w
35 # The flag -w is used, because there are many warnings in libtdm's sources.
36 # Warnings occur because we build project with g++.
37 # In C++ we need to use explicit types conversion.
38
39 tdm_utests_LDFLAGS = \
40         ${LDFLAGS} \
41         $(TDM_LIBS) \
42         -lgtest \
43         -ldl \
44         -pthread
45
46 check:
47         ./tdm-utests