diff --git a/tools/auto-tester/CMakeLists.txt b/tools/auto-tester/CMakeLists.txt index c732c2b137..2a65169da3 100644 --- a/tools/auto-tester/CMakeLists.txt +++ b/tools/auto-tester/CMakeLists.txt @@ -6,17 +6,19 @@ SET(CMAKE_AUTOUIC ON) SET(CMAKE_AUTOMOC ON) setup_hifi_project(Core Widgets) - -# FIX: Qt was built with -reduce-relocations -if (Qt5_POSITION_INDEPENDENT_CODE) - SET(CMAKE_POSITION_INDEPENDENT_CODE ON) -endif() +link_hifi_libraries() +## FIX: Qt was built with -reduce-relocations +#if (Qt5_POSITION_INDEPENDENT_CODE) +# SET(CMAKE_POSITION_INDEPENDENT_CODE ON) +#endif() # Qt includes include_directories(${CMAKE_CURRENT_SOURCE_DIR}) include_directories(${Qt5Core_INCLUDE_DIRS}) include_directories(${Qt5Widgets_INCLUDE_DIRS}) +set(QT_LIBRARIES Qt5::Core Qt5::Widgets) + # Find all sources files file (GLOB_RECURSE SOURCES src/*.cpp) file (GLOB_RECURSE HEADERS src/*.h) @@ -29,7 +31,6 @@ endif() add_executable(PROJECT_NAME ${SOURCES} ${HEADERS} ${UIS}) -set(QT_LIBRARIES Qt5::Core Qt5::Widgets) target_link_libraries(${TARGET_NAME} ${QT_LIBRARIES}) # Copy required dll's.