mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 01:03:38 +02:00
When Qt5 5.2.1 is compiled from source, configured with -developer-build, and used without being installed; then compiling interface results in the following compile error: libraries/shared/src/RegisteredMetaTypes.h:17:34: fatal error: QtScript/QScriptEngine: No such file or directory This commit fixes this by explicitely adding the include directory for QtScript/QScriptEngine to libraries/shared/CMakeLists.txt Likewise we get the compile error: In file included from /opt/highfidelity/hifi/hifi/animation-server/../libraries/voxels/src/VoxelEditPacketSender.h:18:0, from /opt/highfidelity/hifi/hifi/animation-server/src/AnimationServer.cpp:26: /opt/highfidelity/hifi/hifi/animation-server/../libraries/voxels/src/VoxelDetail.h:15:34: fatal error: QtScript/QScriptEngine: No such file or directory which is fixed by added the include directory for QtScript/QScriptEngine to animation-server/CMakeLists.txt Finally, compile errors like In file included from /opt/highfidelity/hifi/hifi/libraries/audio/src/AudioInjectorOptions.h:20:0, from /opt/highfidelity/hifi/hifi/libraries/audio/src/AudioInjector.h:21, from /opt/highfidelity/hifi/hifi/libraries/audio/src/AudioInjector.cpp:22: /opt/highfidelity/hifi/hifi/assignment-client/../libraries/shared/src/RegisteredMetaTypes.h:17:34: fatal error: QtScript/QScriptEngine: No such file or directory that requires to do the same in libraries/audio/CMakeLists.txt
41 lines
1.1 KiB
CMake
41 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
if (WIN32)
|
|
cmake_policy (SET CMP0020 NEW)
|
|
endif (WIN32)
|
|
|
|
set(TARGET_NAME animation-server)
|
|
|
|
set(ROOT_DIR ..)
|
|
set(MACRO_DIR "${ROOT_DIR}/cmake/macros")
|
|
|
|
# setup for find modules
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../cmake/modules/")
|
|
|
|
find_package(Qt5 COMPONENTS Script)
|
|
include_directories(SYSTEM "${Qt5Script_INCLUDE_DIRS}")
|
|
|
|
# set up the external glm library
|
|
include("${MACRO_DIR}/IncludeGLM.cmake")
|
|
include_glm(${TARGET_NAME} "${ROOT_DIR}")
|
|
|
|
include("${MACRO_DIR}/SetupHifiProject.cmake")
|
|
setup_hifi_project(${TARGET_NAME} TRUE)
|
|
|
|
# link in the shared library
|
|
include(${MACRO_DIR}/LinkHifiLibrary.cmake)
|
|
link_hifi_library(shared ${TARGET_NAME} "${ROOT_DIR}")
|
|
|
|
# link in the hifi octree library
|
|
link_hifi_library(octree ${TARGET_NAME} "${ROOT_DIR}")
|
|
|
|
# link in the hifi voxels library
|
|
link_hifi_library(voxels ${TARGET_NAME} "${ROOT_DIR}")
|
|
|
|
# link the hifi networking library
|
|
link_hifi_library(networking ${TARGET_NAME} "${ROOT_DIR}")
|
|
|
|
# add a definition for ssize_t so that windows doesn't bail
|
|
if (WIN32)
|
|
add_definitions(-Dssize_t=long)
|
|
endif ()
|