mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 11:36:27 +02:00
33 lines
No EOL
1.1 KiB
CMake
33 lines
No EOL
1.1 KiB
CMake
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/")
|
|
|
|
set(TARGET_NAME particles)
|
|
|
|
include(${MACRO_DIR}/SetupHifiLibrary.cmake)
|
|
setup_hifi_library(${TARGET_NAME})
|
|
|
|
include(${MACRO_DIR}/IncludeGLM.cmake)
|
|
include_glm(${TARGET_NAME} "${ROOT_DIR}")
|
|
|
|
include(${MACRO_DIR}/LinkHifiLibrary.cmake)
|
|
link_hifi_library(shared ${TARGET_NAME} "${ROOT_DIR}")
|
|
link_hifi_library(octree ${TARGET_NAME} "${ROOT_DIR}")
|
|
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)
|
|
endif () |