File: CMakeLists.txt

package info (click to toggle)
wxpython4.0 4.2.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 221,752 kB
  • sloc: cpp: 962,555; python: 230,573; ansic: 170,731; makefile: 51,756; sh: 9,342; perl: 1,564; javascript: 584; php: 326; xml: 200
file content (53 lines) | stat: -rw-r--r-- 2,009 bytes parent folder | download | duplicates (4)
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
#############################################################################
# Name:        build/cmake/tests/drawing/CMakeLists.txt
# Purpose:     CMake file for drawing test
# Author:      Tobias Taschner
# Created:     2016-10-31
# Copyright:   (c) 2016 wxWidgets development team
# Licence:     wxWindows licence
#############################################################################

# This test program is targeted to "headless GUI" tests, tests which are
# typically tied to the "core" component but that should run nicely in a
# console only program. This program should be executable from a console
# only Unix session (such as telnet or ssh) although it uses graphics
# contexts, so if you modify this project, please check that it can still
# be ran in such configuration and doesn't require an X server connection.
set(TEST_DRAWING_SRC
    test.cpp
    testableframe.cpp
    drawing/drawing.cpp
    drawing/plugindriver.cpp
    drawing/basictest.cpp
    drawing/fonttest.cpp

    testprec.h
    testableframe.h
    testimage.h
    drawing/drawing.h
    drawing/gcfactory.h
    drawing/plugin.h
    drawing/pluginsample.cpp
    drawing/testimagefile.h
    )

set(TEST_DRAWING_DATA
    drawing/references/image_test_image_cairo-1.8_2_ref.png
    drawing/references/image_test_image_cg-10.5_2_ref.png
    drawing/references/image_test_image_gdiplus-6.1_2_ref.png
    )

wx_add_test(test_drawing CONSOLE_GUI ${TEST_DRAWING_SRC}
    DATA ${TEST_DRAWING_DATA}
    )
if(wxUSE_SOCKETS)
    wx_exe_link_libraries(test_drawing wxnet)
endif()

# This is a sample plugin, it simply uses a wxImage based
# wxGraphicsContext. It should render the same as the built-in test. Use
# the WX_TEST_SUITE_GC_DRAWING_PLUGINS variable to specify the location of
# the produced DLL/so to get it loaded and tested. To make your own plugin,
# you can copy this sample and link toward your own implementation of
# wxGraphicsContext interface, building the appropriate DrawingTestGCFactory
# TODO: test_drawingplugin