|
|
|
@ -126,7 +126,6 @@ add_component_dir (version
|
|
|
|
|
set (ESM_UI ${CMAKE_SOURCE_DIR}/files/ui/contentselector.ui
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if(QT_QTGUI_LIBRARY AND QT_QTCORE_LIBRARY)
|
|
|
|
|
add_component_qt_dir (contentselector
|
|
|
|
|
model/modelitem model/esmfile
|
|
|
|
|
model/naturalsort model/contentmodel
|
|
|
|
@ -143,10 +142,14 @@ if(QT_QTGUI_LIBRARY AND QT_QTCORE_LIBRARY)
|
|
|
|
|
processinvoker
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if (DESIRED_QT_VERSION MATCHES 4)
|
|
|
|
|
include(${QT_USE_FILE})
|
|
|
|
|
QT4_WRAP_UI(ESM_UI_HDR ${ESM_UI})
|
|
|
|
|
QT4_WRAP_CPP(MOC_SRCS ${COMPONENT_MOC_FILES})
|
|
|
|
|
endif(QT_QTGUI_LIBRARY AND QT_QTCORE_LIBRARY)
|
|
|
|
|
else()
|
|
|
|
|
QT5_WRAP_UI(ESM_UI_HDR ${ESM_UI})
|
|
|
|
|
QT5_WRAP_CPP(MOC_SRCS ${COMPONENT_MOC_FILES})
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
|
|
|
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND NOT APPLE)
|
|
|
|
@ -166,11 +169,17 @@ target_link_libraries(components
|
|
|
|
|
${Boost_WAVE_LIBRARY}
|
|
|
|
|
${OGRE_LIBRARIES}
|
|
|
|
|
${OENGINE_LIBRARY}
|
|
|
|
|
${QT_QTCORE_LIBRARY}
|
|
|
|
|
${QT_QTGUI_LIBRARY}
|
|
|
|
|
${BULLET_LIBRARIES}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if (DESIRED_QT_VERSION MATCHES 4)
|
|
|
|
|
target_link_libraries(components
|
|
|
|
|
${QT_QTCORE_LIBRARY}
|
|
|
|
|
${QT_QTGUI_LIBRARY})
|
|
|
|
|
else()
|
|
|
|
|
qt5_use_modules(components Widgets Core)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if (GIT_CHECKOUT)
|
|
|
|
|
add_dependencies (components git-version)
|
|
|
|
|
endif (GIT_CHECKOUT)
|
|
|
|
|