From e15cf93443e0cafd8770feff7d0f986a2f04226b Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 10 May 2013 15:05:36 -0700 Subject: [PATCH] Revert "link to LIBOVR_LIBRARY before calling add_executable" This reverts commit b2776f25ac3f655d3ca4c58221a57e94a8d7e2d9. --- interface/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 5fdf98207f..2b2fedda4a 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -61,9 +61,6 @@ include(${QT_USE_FILE}) # run qt moc on qt-enabled headers qt4_wrap_cpp(INTERFACE_SRCS src/Application.h) -find_package(LibOVR) -target_link_libraries(${TARGET_NAME} ${LIBOVR_LIBRARY}) - # create the executable, make it a bundle on OS X add_executable(${TARGET_NAME} MACOSX_BUNDLE ${INTERFACE_SRCS}) @@ -78,6 +75,7 @@ link_hifi_library(avatars ${TARGET_NAME} ${ROOT_DIR}) # find required libraries find_package(GLM REQUIRED) find_package(LodePNG REQUIRED) +find_package(LibOVR) # include headers for external libraries and InterfaceConfig. include_directories( @@ -89,6 +87,7 @@ include_directories( ) target_link_libraries(${TARGET_NAME} ${QT_LIBRARIES}) +target_link_libraries(${TARGET_NAME} ${LIBOVR_LIBRARY}) if (APPLE) # link in required OS X frameworks and include the right GL headers