d71af44bb1
* Disable clang-tidy in test build directories * Disable compiler warnings for test binary directories. These contain generated code we can not change, so the warnings are just noise
34 lines
705 B
CMake
34 lines
705 B
CMake
set(MODULE_NAME "TestSDL")
|
|
set(MODULE_PREFIX "TEST_SDL")
|
|
|
|
set(DRIVER ${MODULE_NAME}.cpp)
|
|
|
|
|
|
disable_warnings_for_directory(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
set(TEST_SRCS
|
|
TestSDLDialogs.cpp
|
|
)
|
|
|
|
create_test_sourcelist(SRCS
|
|
${DRIVER}
|
|
${TEST_SRCS})
|
|
|
|
add_library(${MODULE_NAME} ${SRCS})
|
|
|
|
list(APPEND LIBS
|
|
dialogs
|
|
)
|
|
|
|
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")
|
|
|