mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 23:57:13 +02:00
use system flag for external library includes
This commit is contained in:
parent
222a596754
commit
c3915ed078
1 changed files with 10 additions and 4 deletions
|
@ -87,13 +87,19 @@ find_package(GLM REQUIRED)
|
||||||
find_package(LodePNG REQUIRED)
|
find_package(LodePNG REQUIRED)
|
||||||
find_package(LibOVR)
|
find_package(LibOVR)
|
||||||
|
|
||||||
# include headers for external libraries and InterfaceConfig.
|
# include headers for interface and InterfaceConfig.
|
||||||
include_directories(
|
include_directories(
|
||||||
${PROJECT_SOURCE_DIR}/src
|
${PROJECT_SOURCE_DIR}/src
|
||||||
${PROJECT_BINARY_DIR}/includes
|
${PROJECT_BINARY_DIR}/includes
|
||||||
${GLM_INCLUDE_DIRS}
|
)
|
||||||
${LODEPNG_INCLUDE_DIRS}
|
|
||||||
${LIBOVR_INCLUDE_DIRS}
|
# include external library headers
|
||||||
|
# use system flag so warnings are supressed
|
||||||
|
include_directories(
|
||||||
|
SYSTEM
|
||||||
|
${GLM_INCLUDE_DIRS}
|
||||||
|
${LODEPNG_INCLUDE_DIRS}
|
||||||
|
${LIBOVR_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(${TARGET_NAME} ${QT_LIBRARIES})
|
target_link_libraries(${TARGET_NAME} ${QT_LIBRARIES})
|
||||||
|
|
Loading…
Reference in a new issue