diff --git a/build/cmake/tests/CMakeLists.txt b/build/cmake/tests/CMakeLists.txt index 8065a14edf..9974184b21 100644 --- a/build/cmake/tests/CMakeLists.txt +++ b/build/cmake/tests/CMakeLists.txt @@ -14,5 +14,6 @@ if(wxUSE_GUI AND wxBUILD_TESTS STREQUAL "ALL") add_subdirectory(drawing) add_subdirectory(gui) +add_subdirectory(headers) endif() diff --git a/build/cmake/tests/headers/CMakeLists.txt b/build/cmake/tests/headers/CMakeLists.txt new file mode 100644 index 0000000000..a04d219e47 --- /dev/null +++ b/build/cmake/tests/headers/CMakeLists.txt @@ -0,0 +1,25 @@ +############################################################################# +# Name: build/cmake/tests/headers/CMakeLists.txt +# Purpose: CMake file for headers test +# Author: Maarten Bent +# Created: 2020-07-23 +# Copyright: (c) 2020 wxWidgets development team +# Licence: wxWindows licence +############################################################################# + +set(TEST_SRC + test.cpp + testableframe.cpp + allheaders.cpp + + testprec.h + testableframe.h + allheaders.h + ) + +wx_add_test(test_headers ${TEST_SRC}) +wx_exe_link_libraries(test_headers wxcore) +if(wxUSE_SOCKETS) + wx_exe_link_libraries(test_headers wxnet) +endif() +wx_test_enable_precomp(test_headers)