use external project hack on win only

This commit is contained in:
Stephen Birarda 2016-01-07 16:43:55 -08:00
parent 275fa1c5c7
commit acdd0bda2e

View file

@ -109,13 +109,18 @@ else()
add_executable(${TARGET_NAME} ${INTERFACE_SRCS} ${QM}) add_executable(${TARGET_NAME} ${INTERFACE_SRCS} ${QM})
endif() endif()
<<<<<<< HEAD
target_include_directories(${TARGET_NAME} PRIVATE "${CMAKE_BINARY_DIR}/includes") target_include_directories(${TARGET_NAME} PRIVATE "${CMAKE_BINARY_DIR}/includes")
=======
>>>>>>> ebdd430... use external project hack on win only
if (WIN32) if (WIN32)
add_dependency_external_projects(OpenVR) # These are external plugins, but we need to do the 'add dependency' here so that their
endif() # binary directories get added to the fixup path
if(WIN32 OR APPLE) add_dependency_external_projects(sixense)
add_dependency_external_projects(neuron) add_dependency_external_projects(sdl2)
add_dependency_external_projects(OpenVR)
add_dependency_external_projects(neuron)
endif() endif()
# disable /OPT:REF and /OPT:ICF for the Debug builds # disable /OPT:REF and /OPT:ICF for the Debug builds
@ -141,7 +146,7 @@ target_glew()
target_opengl() target_opengl()
if (WIN32 OR APPLE) if (WIN32 OR APPLE)
target_faceshift() target_faceshift()
endif() endif()
# perform standard include and linking for found externals # perform standard include and linking for found externals
@ -208,10 +213,17 @@ if (APPLE)
target_link_libraries(${TARGET_NAME} ${OpenGL} ${AppKit}) target_link_libraries(${TARGET_NAME} ${OpenGL} ${AppKit})
<<<<<<< HEAD
# setup install of OS X interface bundle # setup install of OS X interface bundle
install(TARGETS ${TARGET_NAME} install(TARGETS ${TARGET_NAME}
BUNDLE DESTINATION ${INTERFACE_INSTALL_DIR} BUNDLE DESTINATION ${INTERFACE_INSTALL_DIR}
COMPONENT ${CLIENT_COMPONENT} COMPONENT ${CLIENT_COMPONENT}
=======
# install command for OS X bundle
INSTALL(TARGETS ${TARGET_NAME}
BUNDLE DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/install" COMPONENT Runtime
RUNTIME DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/install" COMPONENT Runtime
>>>>>>> ebdd430... use external project hack on win only
) )
else (APPLE) else (APPLE)