From 70a4ff1e751139cb8e2bcade6fd09d97cc1b1d65 Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Fri, 7 Feb 2014 14:54:50 -0800 Subject: [PATCH] fix cmake qt issue --- animation-server/CMakeLists.txt | 4 +++- voxel-edit/CMakeLists.txt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/animation-server/CMakeLists.txt b/animation-server/CMakeLists.txt index 5a696afc10..ba3e4e22e6 100644 --- a/animation-server/CMakeLists.txt +++ b/animation-server/CMakeLists.txt @@ -13,9 +13,11 @@ include(${MACRO_DIR}/IncludeGLM.cmake) include_glm(${TARGET_NAME} ${ROOT_DIR}) include(${MACRO_DIR}/SetupHifiProject.cmake) - setup_hifi_project(${TARGET_NAME} TRUE) +find_package(Qt5Script REQUIRED) +qt5_use_modules(${TARGET_NAME} Script) + # link in the shared library include(${MACRO_DIR}/LinkHifiLibrary.cmake) link_hifi_library(shared ${TARGET_NAME} ${ROOT_DIR}) diff --git a/voxel-edit/CMakeLists.txt b/voxel-edit/CMakeLists.txt index 38e1dd6efc..e0aa0750d2 100644 --- a/voxel-edit/CMakeLists.txt +++ b/voxel-edit/CMakeLists.txt @@ -13,9 +13,11 @@ include(${MACRO_DIR}/IncludeGLM.cmake) include_glm(${TARGET_NAME} ${ROOT_DIR}) include(${MACRO_DIR}/SetupHifiProject.cmake) - setup_hifi_project(${TARGET_NAME} TRUE) +find_package(Qt5Script REQUIRED) +qt5_use_modules(${TARGET_NAME} Script) + # link in the shared library include(${MACRO_DIR}/LinkHifiLibrary.cmake) link_hifi_library(shared ${TARGET_NAME} ${ROOT_DIR})