hyperion.ng/test/CMakeLists.txt

70 lines
1.6 KiB
CMake
Raw Normal View History

# Needed for testing non-public components
2013-08-05 23:49:17 +02:00
include_directories(../libsrc)
if(ENABLE_SPIDEV)
# Add the simple test executable 'TestSpi'
add_executable(test_spi TestSpi.cpp)
2016-09-13 17:39:01 +02:00
target_link_libraries(test_spi hyperion effectengine)
add_executable(spidev_test spidev_test.c)
add_executable(gpio2spi switchPinCtrl.c)
endif(ENABLE_SPIDEV)
add_executable(test_configfile
TestConfigFile.cpp)
target_link_libraries(test_configfile
2016-09-13 17:39:01 +02:00
hyperion
effectengine
)
add_executable(test_ImageRgb
TestRgbImage.cpp)
target_link_libraries(test_ImageRgb
hyperion-utils)
add_executable(test_image2ledsmap
TestImage2LedsMap.cpp)
target_link_libraries(test_image2ledsmap
2016-09-13 17:39:01 +02:00
hyperion
effectengine
)
if (ENABLE_DISPMANX)
add_subdirectory(dispmanx2png)
endif (ENABLE_DISPMANX)
add_executable(test_blackborderdetector TestBlackBorderDetector.cpp)
2016-09-13 17:39:01 +02:00
target_link_libraries(test_blackborderdetector
effectengine
hyperion)
add_executable(test_blackborderprocessor
TestBlackBorderProcessor.cpp)
target_link_libraries(test_blackborderprocessor
2016-09-13 17:39:01 +02:00
hyperion
effectengine
)
add_executable(test_qregexp TestQRegExp.cpp)
target_link_libraries(test_qregexp
${QT_LIBRARIES})
add_executable(test_qtscreenshot TestQtScreenshot.cpp)
target_link_libraries(test_qtscreenshot
${QT_LIBRARIES})
qt5_use_modules(test_qregexp Widgets)
qt5_use_modules(test_qtscreenshot Widgets)
if(ENABLE_X11)
# Find X11
find_package(X11 REQUIRED)
add_executable(test_x11performance TestX11Performance.cpp)
target_link_libraries(test_x11performance ${X11_LIBRARIES} ${QT_LIBRARIES})
qt5_use_modules(test_x11performance Widgets)
endif(ENABLE_X11)