|
|
|
@ -135,32 +135,30 @@ add_component_dir (version
|
|
|
|
|
set (ESM_UI ${CMAKE_SOURCE_DIR}/files/ui/contentselector.ui
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
find_package(Qt4 COMPONENTS QtCore QtGui)
|
|
|
|
|
if(MINGW)
|
|
|
|
|
find_package(Bullet REQUIRED COMPONENTS Collision)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(QT_QTGUI_LIBRARY AND QT_QTCORE_LIBRARY)
|
|
|
|
|
add_component_qt_dir (contentselector
|
|
|
|
|
model/modelitem model/esmfile
|
|
|
|
|
model/naturalsort model/contentmodel
|
|
|
|
|
model/loadordererror
|
|
|
|
|
view/combobox view/contentselector
|
|
|
|
|
)
|
|
|
|
|
add_component_qt_dir (config
|
|
|
|
|
gamesettings
|
|
|
|
|
launchersettings
|
|
|
|
|
settingsbase
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_component_qt_dir (process
|
|
|
|
|
processinvoker
|
|
|
|
|
add_component_qt_dir (contentselector
|
|
|
|
|
model/modelitem model/esmfile
|
|
|
|
|
model/naturalsort model/contentmodel
|
|
|
|
|
model/loadordererror
|
|
|
|
|
view/combobox view/contentselector
|
|
|
|
|
)
|
|
|
|
|
add_component_qt_dir (config
|
|
|
|
|
gamesettings
|
|
|
|
|
launchersettings
|
|
|
|
|
settingsbase
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
include(${QT_USE_FILE})
|
|
|
|
|
add_component_qt_dir (process
|
|
|
|
|
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)
|
|
|
|
|
QT4_WRAP_CPP(MOC_SRCS ${COMPONENT_MOC_FILES})
|
|
|
|
|
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)
|
|
|
|
@ -173,7 +171,10 @@ include_directories(${BULLET_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
add_library(components STATIC ${COMPONENT_FILES} ${MOC_SRCS} ${ESM_UI_HDR})
|
|
|
|
|
|
|
|
|
|
target_link_libraries(components
|
|
|
|
|
${Boost_LIBRARIES}
|
|
|
|
|
${Boost_SYSTEM_LIBRARY}
|
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
|
|
|
${Boost_THREAD_LIBRARY}
|
|
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
|
|
|
|
${OPENSCENEGRAPH_LIBRARIES}
|
|
|
|
|
${BULLET_LIBRARIES}
|
|
|
|
|
${SDL2_LIBRARY}
|
|
|
|
@ -181,14 +182,23 @@ target_link_libraries(components
|
|
|
|
|
${OPENGL_gl_LIBRARY}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
|
target_link_libraries(components
|
|
|
|
|
${Boost_LOCALE_LIBRARY})
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
if(MINGW)
|
|
|
|
|
target_link_libraries(components ${QT_LIBRARIES} ${BULLET_LIBRARIES})
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
|
target_link_libraries(components shlwapi)
|
|
|
|
|
endif()
|
|
|
|
|