mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
more Qt module dependencies sorted out for libraries
This commit is contained in:
parent
1059e9a635
commit
2bb37f2d64
5 changed files with 25 additions and 8 deletions
|
@ -14,9 +14,10 @@ link_hifi_library(shared ${TARGET_NAME} "${ROOT_DIR}")
|
|||
link_hifi_library(fbx ${TARGET_NAME} "${ROOT_DIR}")
|
||||
|
||||
find_package(Qt5Script)
|
||||
find_package(Qt5Network)
|
||||
|
||||
# set a property indicating the libraries we are dependent on and link them to ourselves
|
||||
set(DEPENDENCY_LIBRARIES Qt5::Script)
|
||||
set(DEPENDENCY_LIBRARIES Qt5::Script Qt5::Network)
|
||||
set_target_properties(${TARGET_NAME} PROPERTIES DEPENDENCY_LIBRARIES "${DEPENDENCY_LIBRARIES}")
|
||||
target_link_libraries(${TARGET_NAME} ${DEPENDENCY_LIBRARIES})
|
||||
|
||||
|
|
|
@ -20,10 +20,11 @@ link_hifi_library(voxels ${TARGET_NAME} "${ROOT_DIR}")
|
|||
link_hifi_library(networking ${TARGET_NAME} "${ROOT_DIR}")
|
||||
|
||||
find_package(Qt5Network)
|
||||
find_package(Qt5Script)
|
||||
|
||||
# set a property indicating the libraries we are dependent on and link them to ourselves
|
||||
set(DEPENDENCY_LIBRARIES Qt5::Network)
|
||||
set_target_properties(${TARGET_NAME} PROPERTIES DEPENDENCY_LIBRARIES ${DEPENDENCY_LIBRARIES})
|
||||
set(DEPENDENCY_LIBRARIES Qt5::Network Qt5::Script)
|
||||
set_target_properties(${TARGET_NAME} PROPERTIES DEPENDENCY_LIBRARIES "${DEPENDENCY_LIBRARIES}")
|
||||
target_link_libraries(${TARGET_NAME} ${DEPENDENCY_LIBRARIES})
|
||||
|
||||
# add a definition for ssize_t so that windows doesn't bail
|
||||
|
|
|
@ -24,6 +24,14 @@ link_hifi_library(animation ${TARGET_NAME} "${ROOT_DIR}")
|
|||
# for streamable
|
||||
link_hifi_library(metavoxels ${TARGET_NAME} "${ROOT_DIR}")
|
||||
|
||||
find_package(Qt5Network)
|
||||
find_package(Qt5Script)
|
||||
|
||||
# set a property indicating the libraries we are dependent on and link them to ourselves
|
||||
set(DEPENDENCY_LIBRARIES Qt5::Network Qt5::Script)
|
||||
set_target_properties(${TARGET_NAME} PROPERTIES DEPENDENCY_LIBRARIES "${DEPENDENCY_LIBRARIES}")
|
||||
target_link_libraries(${TARGET_NAME} ${DEPENDENCY_LIBRARIES})
|
||||
|
||||
# add a definition for ssize_t so that windows doesn't bail
|
||||
if (WIN32)
|
||||
add_definitions(-Dssize_t=long)
|
||||
|
|
|
@ -21,12 +21,11 @@ find_package(ZLIB)
|
|||
find_package(OpenSSL REQUIRED)
|
||||
|
||||
include_directories(SYSTEM "${ZLIB_INCLUDE_DIRS}" "${OPENSSL_INCLUDE_DIR}")
|
||||
|
||||
# bubble up the libraries we are dependent on
|
||||
set(REQUIRED_DEPENDENCY_LIBRARIES ${REQUIRED_DEPENDENCY_LIBRARIES}
|
||||
"${ZLIB_LIBRARIES}" "${OPENSSL_LIBRARIES}" PARENT_SCOPE)
|
||||
|
||||
target_link_libraries(${TARGET_NAME} ${REQUIRED_DEPENDENCY_LIBRARIES})
|
||||
# set a property indicating the libraries we are dependent on and link them to ourselves
|
||||
set(DEPENDENCY_LIBRARIES "${ZLIB_LIBRARIES}" "${OPENSSL_LIBRARIES}")
|
||||
set_target_properties(${TARGET_NAME} PROPERTIES DEPENDENCY_LIBRARIES ${DEPENDENCY_LIBRARIES})
|
||||
target_link_libraries(${TARGET_NAME} ${DEPENDENCY_LIBRARIES})
|
||||
|
||||
# add a definition for ssize_t so that windows doesn't bail
|
||||
if (WIN32)
|
||||
|
|
|
@ -19,6 +19,14 @@ link_hifi_library(fbx ${TARGET_NAME} "${ROOT_DIR}")
|
|||
link_hifi_library(networking ${TARGET_NAME} "${ROOT_DIR}")
|
||||
link_hifi_library(animation ${TARGET_NAME} "${ROOT_DIR}")
|
||||
|
||||
find_package(Qt5Network)
|
||||
find_package(Qt5Script)
|
||||
|
||||
# set a property indicating the libraries we are dependent on and link them to ourselves
|
||||
set(DEPENDENCY_LIBRARIES Qt5::Network Qt5::Script)
|
||||
set_target_properties(${TARGET_NAME} PROPERTIES DEPENDENCY_LIBRARIES "${DEPENDENCY_LIBRARIES}")
|
||||
target_link_libraries(${TARGET_NAME} ${DEPENDENCY_LIBRARIES})
|
||||
|
||||
# add a definition for ssize_t so that windows doesn't bail
|
||||
if (WIN32)
|
||||
add_definitions(-Dssize_t=long)
|
||||
|
|
Loading…
Reference in a new issue