mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
5a69b4e6a2
Former-commit-id: ff7ff4f353381409efbdfcf346b6a4817f7dc7e1
72 lines
1.7 KiB
CMake
72 lines
1.7 KiB
CMake
# Needed for testing non-public components
|
|
include_directories(../libsrc)
|
|
|
|
if(ENABLE_SPIDEV)
|
|
# Add the simple test executable 'TestSpi'
|
|
add_executable(test_spi TestSpi.cpp)
|
|
target_link_libraries(test_spi hyperion)
|
|
|
|
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
|
|
hyperion)
|
|
|
|
add_executable(test_ImageRgb
|
|
TestRgbImage.cpp)
|
|
target_link_libraries(test_ImageRgb
|
|
hyperion-utils)
|
|
|
|
add_executable(test_colortransform
|
|
TestColorTransform.cpp)
|
|
target_link_libraries(test_colortransform
|
|
hyperion)
|
|
|
|
add_executable(test_image2ledsmap
|
|
TestImage2LedsMap.cpp)
|
|
target_link_libraries(test_image2ledsmap
|
|
hyperion)
|
|
|
|
if (ENABLE_DISPMANX)
|
|
add_subdirectory(dispmanx2png)
|
|
endif (ENABLE_DISPMANX)
|
|
|
|
add_executable(test_blackborderdetector
|
|
TestBlackBorderDetector.cpp)
|
|
target_link_libraries(test_blackborderdetector
|
|
hyperion)
|
|
|
|
add_executable(test_blackborderprocessor
|
|
TestBlackBorderProcessor.cpp)
|
|
target_link_libraries(test_blackborderprocessor
|
|
hyperion)
|
|
|
|
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})
|
|
|
|
if(ENABLE_QT5)
|
|
qt5_use_modules(test_qregexp Widgets)
|
|
qt5_use_modules(test_qtscreenshot Widgets)
|
|
endif(ENABLE_QT5)
|
|
|
|
if(ENABLE_X11)
|
|
# Find X11
|
|
find_package(X11 REQUIRED)
|
|
|
|
add_executable(test_x11performance TestX11Performance.cpp)
|
|
target_link_libraries(test_x11performance ${X11_LIBRARIES} ${QT_LIBRARIES})
|
|
if(ENABLE_QT5)
|
|
qt5_use_modules(test_x11performance Widgets)
|
|
endif(ENABLE_QT5)
|
|
|
|
endif(ENABLE_X11)
|