2019-07-09 23:07:31 +02:00
|
|
|
# Needed for testing non-public components
|
2013-08-05 23:49:17 +02:00
|
|
|
include_directories(../libsrc)
|
2013-08-01 17:08:58 +02:00
|
|
|
|
2021-11-16 18:12:56 +01:00
|
|
|
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets REQUIRED)
|
2017-08-01 15:42:36 +02:00
|
|
|
|
|
|
|
MACRO (link_to_hyperion TARGET)
|
2022-02-11 20:36:15 +01:00
|
|
|
target_link_libraries( ${TARGET} blackborder leddevice jsonserver hyperion-utils hyperion )
|
|
|
|
if(ENABLE_EFFECTENGINE)
|
|
|
|
target_link_libraries( ${TARGET} effectengine )
|
|
|
|
endif()
|
2017-08-01 15:42:36 +02:00
|
|
|
ENDMACRO()
|
|
|
|
|
2022-02-11 20:36:15 +01:00
|
|
|
if(ENABLE_DEV_SPI)
|
2013-12-17 22:53:16 +01:00
|
|
|
# Add the simple test executable 'TestSpi'
|
|
|
|
add_executable(test_spi TestSpi.cpp)
|
2019-07-09 23:07:31 +02:00
|
|
|
target_link_libraries( test_spi leddevice hyperion-utils hyperion )
|
2013-12-17 22:53:16 +01:00
|
|
|
add_executable(spidev_test spidev_test.c)
|
|
|
|
add_executable(gpio2spi switchPinCtrl.c)
|
2022-02-11 20:36:15 +01:00
|
|
|
endif(ENABLE_DEV_SPI)
|
2013-08-13 12:03:00 +02:00
|
|
|
|
2017-08-01 15:42:36 +02:00
|
|
|
add_executable(test_configfile TestConfigFile.cpp)
|
|
|
|
link_to_hyperion(test_configfile)
|
2013-08-01 17:08:58 +02:00
|
|
|
|
2017-08-01 15:42:36 +02:00
|
|
|
add_executable(test_ImageRgb TestRgbImage.cpp)
|
|
|
|
link_to_hyperion(test_ImageRgb)
|
2013-08-01 17:08:58 +02:00
|
|
|
|
2016-06-17 01:25:40 +02:00
|
|
|
add_executable(test_blackborderdetector TestBlackBorderDetector.cpp)
|
2017-08-01 15:42:36 +02:00
|
|
|
link_to_hyperion(test_blackborderdetector)
|
2013-08-21 22:44:17 +02:00
|
|
|
|
2013-11-22 11:44:41 +01:00
|
|
|
add_executable(test_qregexp TestQRegExp.cpp)
|
2021-11-16 18:12:56 +01:00
|
|
|
target_link_libraries(test_qregexp Qt${QT_VERSION_MAJOR}::Widgets)
|
2013-12-20 19:46:03 +01:00
|
|
|
|
|
|
|
add_executable(test_qtscreenshot TestQtScreenshot.cpp)
|
2021-11-16 18:12:56 +01:00
|
|
|
target_link_libraries(test_qtscreenshot Qt${QT_VERSION_MAJOR}::Widgets)
|
2016-01-06 17:31:23 +01:00
|
|
|
|
2014-02-25 22:08:54 +01:00
|
|
|
if(ENABLE_X11)
|
2017-08-01 15:42:36 +02:00
|
|
|
find_package(X11 REQUIRED)
|
|
|
|
add_executable(test_x11performance TestX11Performance.cpp)
|
2021-11-16 18:12:56 +01:00
|
|
|
target_link_libraries(test_x11performance ${X11_LIBRARIES} Qt${QT_VERSION_MAJOR}::Widgets)
|
2014-02-25 22:08:54 +01:00
|
|
|
endif(ENABLE_X11)
|
2019-07-09 23:07:31 +02:00
|
|
|
|
2021-10-16 13:54:18 +02:00
|
|
|
add_executable(test_versions TestVersions.cpp)
|
2021-11-16 18:12:56 +01:00
|
|
|
target_link_libraries(test_versions Qt${QT_VERSION_MAJOR}::Core)
|
2021-10-16 13:54:18 +02:00
|
|
|
|
2019-07-09 23:07:31 +02:00
|
|
|
######### These tests are broken. May they fix someone ##########
|
|
|
|
|
|
|
|
# add_executable(test_image2ledsmap TestImage2LedsMap.cpp)
|
|
|
|
# link_to_hyperion(test_image2ledsmap)
|
|
|
|
|
|
|
|
# if (ENABLE_DISPMANX)
|
|
|
|
# add_subdirectory(dispmanx2png)
|
|
|
|
# endif (ENABLE_DISPMANX)
|
|
|
|
|
|
|
|
# add_executable(test_blackborderprocessor TestBlackBorderProcessor.cpp)
|
|
|
|
# link_to_hyperion(test_blackborderprocessor)
|
|
|
|
|
|
|
|
###################################################
|