FreeRDP/client/SDL/SDL3/dialogs/test/CMakeLists.txt

34 lines
705 B
CMake
Raw Normal View History

2023-02-14 18:16:24 +03:00
set(MODULE_NAME "TestSDL")
set(MODULE_PREFIX "TEST_SDL")
set(DRIVER ${MODULE_NAME}.cpp)
2023-02-14 18:16:24 +03:00
disable_warnings_for_directory(${CMAKE_CURRENT_BINARY_DIR})
2023-02-14 18:16:24 +03:00
set(TEST_SRCS
TestSDLDialogs.cpp
2023-02-14 18:16:24 +03:00
)
create_test_sourcelist(SRCS
${DRIVER}
${TEST_SRCS})
add_library(${MODULE_NAME} ${SRCS})
2023-02-14 18:16:24 +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")