91 lines
1.6 KiB
CMake
91 lines
1.6 KiB
CMake
# Author: Unai Blazquez
|
|
# License: GPL-3-only
|
|
|
|
add_executable(test_sysfs_reader
|
|
test_sysfs_read.cxx
|
|
)
|
|
|
|
target_link_libraries(test_sysfs_reader
|
|
PRIVATE
|
|
core
|
|
gtest
|
|
gtest_main
|
|
)
|
|
add_test(NAME test_sysfs_reader COMMAND test_sysfs_reader)
|
|
add_executable(test_producer
|
|
test_producer.cxx
|
|
)
|
|
|
|
target_link_libraries(test_producer
|
|
PRIVATE
|
|
core
|
|
gtest
|
|
gtest_main
|
|
)
|
|
|
|
add_test(NAME test_producer COMMAND test_producer)
|
|
|
|
add_executable(test_ipc
|
|
test_unix_ipc.cxx
|
|
)
|
|
|
|
target_link_libraries(test_ipc
|
|
PRIVATE
|
|
core
|
|
gtest
|
|
gtest_main
|
|
)
|
|
|
|
add_test(NAME test_ipc COMMAND test_ipc)
|
|
|
|
|
|
add_executable(test_consumer
|
|
test_consumer.cxx
|
|
)
|
|
|
|
target_link_libraries(test_consumer
|
|
PRIVATE
|
|
core
|
|
gtest
|
|
gtest_main
|
|
Qt5::Core
|
|
Qt5::Test
|
|
)
|
|
|
|
add_test(NAME test_consumer COMMAND test_consumer)
|
|
|
|
add_executable(test_main_window
|
|
test_main_window.cxx
|
|
${CMAKE_SOURCE_DIR}/src/app/MainWindow.cxx
|
|
${CMAKE_SOURCE_DIR}/include/MainWindow.hpp
|
|
)
|
|
|
|
target_include_directories(test_main_window PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
|
|
|
target_link_libraries(test_main_window
|
|
PRIVATE
|
|
core
|
|
gtest
|
|
gtest_main
|
|
Qt5::Core
|
|
Qt5::Widgets
|
|
Qt5::Test
|
|
)
|
|
|
|
add_test(NAME test_main_window COMMAND test_main_window)
|
|
|
|
add_executable(test_race_conditions
|
|
test_race_conditions.cxx
|
|
)
|
|
|
|
target_link_libraries(test_race_conditions
|
|
PRIVATE
|
|
core
|
|
gtest
|
|
gtest_main
|
|
Qt5::Core
|
|
Qt5::Test
|
|
)
|
|
|
|
add_test(NAME test_race_conditions COMMAND test_race_conditions)
|