2015-07-26 14:23:17 +03:00
|
|
|
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
|
|
|
|
|
|
|
|
add_definitions(-DKDEVPLATFORMINTERFACES_EXPORT=)
|
|
|
|
|
|
|
|
set(foregroundlock_SRC test_foregroundlock.cpp ../foregroundlock.cpp)
|
2015-09-07 11:20:00 +03:00
|
|
|
kde4_add_test(kdevplatform-foregroundlocktest ${foregroundlock_SRC})
|
|
|
|
target_link_libraries(kdevplatform-foregroundlocktest ${KDE4_KDECORE_LIBS} ${QT_QTTEST_LIBRARY})
|
2015-07-26 14:23:17 +03:00
|
|
|
|
|
|
|
if( RT_LIBRARY )
|
2015-09-07 11:20:00 +03:00
|
|
|
target_link_libraries(kdevplatform-foregroundlocktest ${RT_LIBRARY} )
|
2015-07-26 14:23:17 +03:00
|
|
|
endif( RT_LIBRARY )
|
|
|
|
|
|
|
|
if( Threads_FOUND )
|
2015-09-07 11:20:00 +03:00
|
|
|
target_link_libraries(kdevplatform-foregroundlocktest ${CMAKE_THREAD_LIBS_INIT} )
|
2015-07-26 14:23:17 +03:00
|
|
|
endif( Threads_FOUND )
|