mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-01 16:19:47 +02:00
Fix building tests only if enabled
This commit is contained in:
parent
34ae1c3123
commit
00e5bb89dd
@ -114,8 +114,10 @@ target_link_libraries(
|
||||
Qt${QT_VERSION_MAJOR}::Svg
|
||||
Qt5::WebEngine)
|
||||
|
||||
add_executable(tst_ScreenPlay tests/tst_main.cpp)
|
||||
if(${TESTS_ENABLED})
|
||||
add_executable(tst_ScreenPlay tests/tst_main.cpp)
|
||||
target_link_libraries(tst_ScreenPlay PRIVATE ScreenPlayLib Qt5::Test)
|
||||
endif()
|
||||
|
||||
add_executable(${PROJECT_NAME} main.cpp)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE ScreenPlayLib)
|
||||
|
Loading…
Reference in New Issue
Block a user