call use modules after OpenNI is linked

This commit is contained in:
Stephen Birarda 2013-07-31 15:45:22 -07:00
parent 10b57bca80
commit c34bc4173b

View file

@ -80,8 +80,6 @@ include_directories(external/fervor/)
# create the executable, make it a bundle on OS X
add_executable(${TARGET_NAME} MACOSX_BUNDLE ${INTERFACE_SRCS})
qt5_use_modules(${TARGET_NAME} Core Gui Network OpenGL Svg)
# link in the hifi shared library
include(${MACRO_DIR}/LinkHifiLibrary.cmake)
@ -110,6 +108,8 @@ if (OPENNI_FOUND)
target_link_libraries(${TARGET_NAME} ${OPENNI_LIBRARIES})
endif (OPENNI_FOUND)
qt5_use_modules(${TARGET_NAME} Core Gui Network OpenGL Svg)
# include headers for interface and InterfaceConfig.
include_directories(
${PROJECT_SOURCE_DIR}/src