mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-09 08:00:23 +02:00
40 lines
1.2 KiB
CMake
40 lines
1.2 KiB
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
if (WIN32)
|
|
cmake_policy (SET CMP0020 NEW)
|
|
endif (WIN32)
|
|
|
|
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 script-engine)
|
|
|
|
find_package(Qt5Widgets REQUIRED)
|
|
|
|
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(voxels ${TARGET_NAME} "${ROOT_DIR}")
|
|
link_hifi_library(fbx ${TARGET_NAME} "${ROOT_DIR}")
|
|
link_hifi_library(particles ${TARGET_NAME} "${ROOT_DIR}")
|
|
|
|
# link ZLIB
|
|
find_package(ZLIB)
|
|
find_package(GnuTLS REQUIRED)
|
|
|
|
# add a definition for ssize_t so that windows doesn't bail on gnutls.h
|
|
if (WIN32)
|
|
add_definitions(-Dssize_t=long)
|
|
endif ()
|
|
|
|
include_directories(SYSTEM "${ZLIB_INCLUDE_DIRS}" "${GNUTLS_INCLUDE_DIR}")
|
|
target_link_libraries(${TARGET_NAME} "${ZLIB_LIBRARIES}" "${GNUTLS_LIBRARY}" Qt5::Widgets)
|