find_package (Qt5Test 5 REQUIRED) # # Compiler options # set (CMAKE_CXX_STANDARD 11) add_compile_options ("$<$:-Wall;-Wno-conversion;-fno-second-underscore;-fno-f2c>") add_compile_options ("$<$,$>:-fbounds-check>") add_compile_options ("$<$,$>>:-funroll-all-loops>") add_compile_options ("$<$,$>,$,$,$>>:-Wall;-Wextra>") add_compile_options ("$<$,$>:-Wno-pragmas>") add_compile_options ("$<$,$>,$>>:-fdata-sections;-ffunction-sections>") if (${OPENMP_FOUND} OR APPLE) add_compile_options ("$<$,$>,$>:${OpenMP_C_FLAGS}>") endif () # Tell CMake to run moc when necessary set (CMAKE_AUTOMOC ON) include_directories (${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_SOURCE_DIR}) add_executable (test_qt_helpers test_qt_helpers.cpp) target_link_libraries (test_qt_helpers wsjt_qt Qt5::Test) add_test (test_qt_helpers test_qt_helpers)