CMake: Use common function for adding samples, tests and demos
This commit is contained in:
@@ -117,14 +117,12 @@ set(TEST_DATA
|
||||
testdata.fc
|
||||
)
|
||||
|
||||
wx_add_test(test_base ${TEST_SRC}
|
||||
wx_add_test(test_base CONSOLE ${TEST_SRC}
|
||||
DATA ${TEST_DATA}
|
||||
)
|
||||
target_compile_definitions(test_base PRIVATE wxUSE_GUI=0 wxUSE_BASE=1)
|
||||
if(wxUSE_SOCKETS)
|
||||
wx_exe_link_libraries(test_base wxnet)
|
||||
endif()
|
||||
if(wxUSE_XML)
|
||||
wx_exe_link_libraries(test_base wxxml)
|
||||
endif()
|
||||
wx_test_enable_precomp(test_base)
|
||||
|
Reference in New Issue
Block a user