You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3coop/extern/osgQt/CMakeLists.txt

21 lines
469 B
CMake

set(OSGQT_LIBRARY "osgQt")
# Sources
set(OSGQT_SOURCE_FILES
GraphicsWindowQt.cpp
)
add_library(${OSGQT_LIBRARY} STATIC ${OSGQT_SOURCE_FILES})
if (DESIRED_QT_VERSION MATCHES 4)
include(${QT_USE_FILE})
target_link_libraries(${OSGQT_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTOPENGL_LIBRARY})
else()
qt5_use_modules(${OSGQT_LIBRARY} Core OpenGL)
endif()
link_directories(${CMAKE_CURRENT_BINARY_DIR})
set(EXTERN_OSGQT_LIBRARY ${OSGQT_LIBRARY} PARENT_SCOPE)