summaryrefslogtreecommitdiff
path: root/retrace/daemon/bargraph/test/CMakeLists.txt
blob: 46f1fc0eeae833c0c662b86eace2017ce658e4c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
find_package(Waffle REQUIRED)

include_directories (
  ${CMAKE_SOURCE_DIR}/retrace/daemon/bargraph
  )

find_package(Qt5Core REQUIRED)

set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(BARGRAPH_TEST_SOURCE
  main_test.cpp
  test_bargraph.cpp
  test_selection.cpp
  test_selection.hpp
  )

set(TEST_UTILITIES_SOURCE
  test_bargraph_ctx.cpp
  test_bargraph_ctx.hpp
)  

add_executable(retrace_bargraph_test
  ${BARGRAPH_TEST_SOURCE}
  )

add_library(retrace_ui_test_utilities
  ${TEST_UTILITIES_SOURCE}
  )


target_link_libraries(retrace_bargraph_test
  retrace_ui_test_utilities
  retrace_bargraph
  retrace_gldispatch
  gtest
  waffle-1
  GL
  dl
  )

qt5_use_modules(retrace_bargraph_test Core) 

add_test (NAME bargraph_test COMMAND $<TARGET_FILE:retrace_bargraph_test>)

set(LINT_SOURCE
  ${BARGRAPH_TEST_SOURCE}
  ${TEST_UTILITIES_SOURCE}
  )

if (NOT WIN32)
  Lint( LINT_SOURCE )
endif()