CMake: copy data files of test projects

Add headers to source files so they are included in IDE projects.
This commit is contained in:
Maarten Bent
2018-07-30 23:53:07 +02:00
parent b91ab1724c
commit 3c0ea566fd
4 changed files with 117 additions and 4 deletions

View File

@@ -20,8 +20,25 @@ set(TEST_DRAWING_SRC
drawing/plugindriver.cpp
drawing/basictest.cpp
drawing/fonttest.cpp
testprec.h
testableframe.h
testimage.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 ${TEST_DRAWING_SRC}
DATA ${TEST_DRAWING_DATA}
)
wx_add_test(test_drawing ${TEST_DRAWING_SRC})
if(wxUSE_SOCKETS)
wx_exe_link_libraries(test_drawing net)
endif()