diff --git a/tests/testCuiAbsolute/CMakeLists.txt b/tests/testCuiAbsolute/CMakeLists.txt index f62bf06bb..380cee9bb 100644 --- a/tests/testCuiAbsolute/CMakeLists.txt +++ b/tests/testCuiAbsolute/CMakeLists.txt @@ -1,15 +1,8 @@ -cmake_minimum_required(VERSION 2.6) - add_executable(testCuiAbsolute testCuiAbsolute.cpp) -find_package(YARP REQUIRED) -find_package(COLOR_DEBUG REQUIRED) -find_package(GTest REQUIRED) - -include_directories(${GTEST_INCLUDE_DIRS} ${YARP_INCLUDE_DIRS} ${TEMPLATE_NAME_INCLUDE_DIRS}) - -target_link_libraries(testCuiAbsolute ${YARP_LIBRARIES} - ${GTEST_BOTH_LIBRARIES} +target_link_libraries(testCuiAbsolute YARP::YARP_OS + YARP::YARP_dev ROBOTICSLAB::ColorDebug - ${CMAKE_THREAD_LIBS_INIT} - ) + YarpDevicesInterfaces + gtest + gtest_main)