2023-02-14 18:16:24 +03:00
|
|
|
set(MODULE_NAME "TestSDL")
|
|
|
|
set(MODULE_PREFIX "TEST_SDL")
|
|
|
|
|
2023-10-10 23:10:44 +03:00
|
|
|
set(DRIVER ${MODULE_NAME}.cpp)
|
2023-02-14 18:16:24 +03:00
|
|
|
|
2024-08-27 10:03:44 +03:00
|
|
|
|
|
|
|
disable_warnings_for_directory(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2023-02-14 18:16:24 +03:00
|
|
|
set(TEST_SRCS
|
2023-07-19 18:20:23 +03:00
|
|
|
TestSDLDialogs.cpp
|
2023-02-14 18:16:24 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
create_test_sourcelist(SRCS
|
|
|
|
${DRIVER}
|
|
|
|
${TEST_SRCS})
|
|
|
|
|
2023-10-10 23:10:44 +03:00
|
|
|
add_library(${MODULE_NAME} ${SRCS})
|
2023-02-14 18:16:24 +03:00
|
|
|
|
2023-07-19 18:20:23 +03:00
|
|
|
list(APPEND LIBS
|
|
|
|
dialogs
|
|
|
|
)
|
2023-02-14 18:16:24 +03:00
|
|
|
|
|
|
|
target_link_libraries(${MODULE_NAME} ${LIBS})
|
|
|
|
|
|
|
|
set_target_properties(${MODULE_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${TESTING_OUTPUT_DIRECTORY}")
|
|
|
|
|
|
|
|
foreach(test ${TESTS})
|
|
|
|
get_filename_component(TestName ${test} NAME_WE)
|
|
|
|
add_test(${TestName} ${TESTING_OUTPUT_DIRECTORY}/${MODULE_NAME} ${TestName})
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "FreeRDP/Client/Test")
|
|
|
|
|