|
|
@ -135,32 +135,30 @@ add_component_dir (version
|
|
|
|
set (ESM_UI ${CMAKE_SOURCE_DIR}/files/ui/contentselector.ui
|
|
|
|
set (ESM_UI ${CMAKE_SOURCE_DIR}/files/ui/contentselector.ui
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
find_package(Qt4 COMPONENTS QtCore QtGui)
|
|
|
|
add_component_qt_dir (contentselector
|
|
|
|
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/modelitem model/esmfile
|
|
|
|
model/naturalsort model/contentmodel
|
|
|
|
model/naturalsort model/contentmodel
|
|
|
|
model/loadordererror
|
|
|
|
model/loadordererror
|
|
|
|
view/combobox view/contentselector
|
|
|
|
view/combobox view/contentselector
|
|
|
|
)
|
|
|
|
)
|
|
|
|
add_component_qt_dir (config
|
|
|
|
add_component_qt_dir (config
|
|
|
|
gamesettings
|
|
|
|
gamesettings
|
|
|
|
launchersettings
|
|
|
|
launchersettings
|
|
|
|
settingsbase
|
|
|
|
settingsbase
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_component_qt_dir (process
|
|
|
|
add_component_qt_dir (process
|
|
|
|
processinvoker
|
|
|
|
processinvoker
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (DESIRED_QT_VERSION MATCHES 4)
|
|
|
|
include(${QT_USE_FILE})
|
|
|
|
include(${QT_USE_FILE})
|
|
|
|
QT4_WRAP_UI(ESM_UI_HDR ${ESM_UI})
|
|
|
|
QT4_WRAP_UI(ESM_UI_HDR ${ESM_UI})
|
|
|
|
QT4_WRAP_CPP(MOC_SRCS ${COMPONENT_MOC_FILES})
|
|
|
|
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_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
|
|
|
if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND NOT APPLE)
|
|
|
|
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})
|
|
|
|
add_library(components STATIC ${COMPONENT_FILES} ${MOC_SRCS} ${ESM_UI_HDR})
|
|
|
|
|
|
|
|
|
|
|
|
target_link_libraries(components
|
|
|
|
target_link_libraries(components
|
|
|
|
${Boost_LIBRARIES}
|
|
|
|
${Boost_SYSTEM_LIBRARY}
|
|
|
|
|
|
|
|
${Boost_FILESYSTEM_LIBRARY}
|
|
|
|
|
|
|
|
${Boost_THREAD_LIBRARY}
|
|
|
|
|
|
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
|
|
|
${OPENSCENEGRAPH_LIBRARIES}
|
|
|
|
${OPENSCENEGRAPH_LIBRARIES}
|
|
|
|
${BULLET_LIBRARIES}
|
|
|
|
${BULLET_LIBRARIES}
|
|
|
|
${SDL2_LIBRARY}
|
|
|
|
${SDL2_LIBRARY}
|
|
|
@ -181,14 +182,23 @@ target_link_libraries(components
|
|
|
|
${OPENGL_gl_LIBRARY}
|
|
|
|
${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)
|
|
|
|
if (GIT_CHECKOUT)
|
|
|
|
add_dependencies (components git-version)
|
|
|
|
add_dependencies (components git-version)
|
|
|
|
endif (GIT_CHECKOUT)
|
|
|
|
endif (GIT_CHECKOUT)
|
|
|
|
|
|
|
|
|
|
|
|
if(MINGW)
|
|
|
|
|
|
|
|
target_link_libraries(components ${QT_LIBRARIES} ${BULLET_LIBRARIES})
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
if (WIN32)
|
|
|
|
target_link_libraries(components shlwapi)
|
|
|
|
target_link_libraries(components shlwapi)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|