if(NOT USE_QT5)
QT4_WRAP_UI(UISrcs editor.ui connection_options.ui mainwindowview.ui)
else()
QT5_WRAP_UI(UISrcs editor.ui connection_options.ui mainwindowview.ui)
endif()find_path(PROPERTY_WIDGET_INCLUDE_DIR PropertyWidget.h PATH_SUFFIXES include/QtnProperty/PropertyWidget)
if(WIN32)
find_file(PROPERTY_WIDGET_LIBRARY QtnPropertyWidget.lib PATH_SUFFIXES lib)
else()
find_file(PROPERTY_WIDGET_LIBRARY NAMES QtnPropertyWidget PATH_SUFFIXES lib bin)
endif()
find_path(PROPERTY_CORE_INCLUDE_DIR PropertyCore.h PATH_SUFFIXES include/QtnProperty/Core)
if(WIN32)
find_file(PROPERTY_CORE_LIBRARY QtnPropertyCore.lib PATH_SUFFIXES lib)
else()
find_file(PROPERTY_CORE_LIBRARY NAMES QtnPropertyCore PATH_SUFFIXES lib bin)
endif()
include_directories(${PROPERTY_WIDGET_INCLUDE_DIR})
include_directories(${PROPERTY_CORE_INCLUDE_DIR})
add_executable(VR
${UISrcs}
main.cpp
)
if(WIN32)
set(ADDITIONAL_LIBS Rpcrt4.lib)
else()
set(ADDITIONAL_LIBS "")
endif()
target_link_libraries(VR
${ADDITIONAL_LIBS}
${qt_libs}
${PROPERTY_WIDGET_LIBRARY}
${PROPERTY_CORE_LIBRARY}
${OPENSCENEGRAPH_LIBRARIES}
${OPENGL_LIBRARIES}
)
set(VR_VERSION_MAJOR 1)
set(VR_VERSION_MINOR 2)
set(VR_VERSION_PATCH 3)
set(VR_VERSION ${VR_VERSION_MAJOR}.${VR_VERSION_MINOR}.${VR_VERSION_PATCH} )
set_target_properties(VR PROPERTIES VERSION ${VR_VERSION}
SOVERSION ${VR_VERSION_MAJOR} )
install(TARGETS VR
RUNTIME DESTINATION bin
LIBRARY DESTINATION bin
ARCHIVE DESTINATION lib)