mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 14:53:01 +02:00
Fixing CMake
This commit is contained in:
parent
0c271488bb
commit
c6ffbf612a
1 changed files with 2 additions and 12 deletions
|
@ -11,18 +11,8 @@ link_hifi_libraries()
|
||||||
# Find includes in corresponding build directories
|
# Find includes in corresponding build directories
|
||||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||||
|
|
||||||
find_package(Qt5Core)
|
find_package(Qt5Core REQUIRED)
|
||||||
find_package(Qt5Widgets)
|
find_package(Qt5Widgets REQUIRED)
|
||||||
|
|
||||||
# Add the include directories for the Qt 5 Widgets module to
|
|
||||||
# the compile lines.
|
|
||||||
include_directories(${Qt5Core_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS})
|
|
||||||
|
|
||||||
# Use the compile definitions defined in the Qt 5 Widgets module
|
|
||||||
add_definitions(${Qt5Widgets_DEFINITIONS})
|
|
||||||
|
|
||||||
# Add compiler flags for building executables (-fPIE)
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
|
|
||||||
|
|
||||||
# Find all sources files
|
# Find all sources files
|
||||||
file (GLOB_RECURSE SOURCES src/*.cpp)
|
file (GLOB_RECURSE SOURCES src/*.cpp)
|
||||||
|
|
Loading…
Reference in a new issue