mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fixed CMakeLists.txt.
This commit is contained in:
parent
c0d1549ca5
commit
1510c4d68a
1 changed files with 7 additions and 6 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue