mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 16:26:18 +00:00
The Qt Ryzom client configuration tool can now be built with CMake!
This commit is contained in:
parent
5f58ad7f93
commit
8f1ad70241
2 changed files with 55 additions and 1 deletions
|
@ -1 +1,5 @@
|
|||
ADD_SUBDIRECTORY(client_patcher)
|
||||
ADD_SUBDIRECTORY( client_patcher )
|
||||
|
||||
IF( WITH_QT )
|
||||
ADD_SUBDIRECTORY( client_config_qt )
|
||||
ENDIF( WITH_QT )
|
||||
|
|
50
code/ryzom/tools/client/client_config_qt/CMakeLists.txt
Normal file
50
code/ryzom/tools/client/client_config_qt/CMakeLists.txt
Normal file
|
@ -0,0 +1,50 @@
|
|||
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${QT_INCLUDES} )
|
||||
FILE( GLOB SRC *.cpp *.h )
|
||||
|
||||
SET( CLIENT_CONFIG_HDR
|
||||
client_config_dialog.h
|
||||
config.h
|
||||
display_settings_advanced_widget.h
|
||||
display_settings_details_widget.h
|
||||
display_settings_widget.h
|
||||
general_settings_widget.h
|
||||
sound_settings_widget.h
|
||||
system.h
|
||||
sys_info_d3d_widget.h
|
||||
sys_info_opengl_widget.h
|
||||
sys_info_widget.h
|
||||
widget_base.h
|
||||
)
|
||||
|
||||
SET( CLIENT_CONFIG_UIS
|
||||
client_config_dialog.ui
|
||||
display_settings_advanced_widget.ui
|
||||
display_settings_details_widget.ui
|
||||
display_settings_widget.ui
|
||||
general_settings_widget.ui
|
||||
sound_settings_widget.ui
|
||||
sys_info_d3d_widget.ui
|
||||
sys_info_opengl_widget.ui
|
||||
sys_info_widget.ui
|
||||
)
|
||||
|
||||
SET( CLIENT_CONFIG_RCS resources.qrc )
|
||||
SET( QT_USE_QTGUI TRUE )
|
||||
SET( QT_USE_QTOPENGL TRUE )
|
||||
SET( QT_USE_QTCORE TRUE )
|
||||
QT4_ADD_RESOURCES( CLIENT_CONFIG_RC_SRCS ${CLIENT_CONFIG_RCS} )
|
||||
QT4_WRAP_CPP( CLIENT_CONFIG_MOC_SRC ${CLIENT_CONFIG_HDR} )
|
||||
QT4_WRAP_UI( CLIENT_CONFIG_UI_HDRS ${CLIENT_CONFIG_UIS} )
|
||||
SOURCE_GROUP( "Resources" FILES ${CLIENT_CONFIG_UIS} ${CLIENT_CONFIG_RCS} )
|
||||
SOURCE_GROUP( "Generated Files" FILES ${CLIENT_CONFIG_UI_HDRS} ${CLIENT_CONFIG_MOC_SRC} )
|
||||
SOURCE_GROUP( "Sources" FILES ${SRC} )
|
||||
ADD_DEFINITIONS( ${QT_DEFINITIONS} )
|
||||
ADD_EXECUTABLE( ryzom_configuration_qt ${SRC} ${CLIENT_CONFIG_MOC_SRC} ${CLIENT_CONFIG_UI_HDRS} ${CLIENT_CONFIG_RC_SRCS} )
|
||||
NL_DEFAULT_PROPS( ryzom_configuration_qt "Ryzom, Tools: Ryzom Configuration Qt" )
|
||||
NL_ADD_RUNTIME_FLAGS( ryzom_configuration_qt )
|
||||
NL_ADD_LIB_SUFFIX( ryzom_configuration_qt )
|
||||
TARGET_LINK_LIBRARIES( ryzom_configuration_qt nelmisc nel3d ${QT_LIBRARIES} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY} )
|
||||
INSTALL( TARGETS ryzom_configuration_qt RUNTIME DESTINATION games COMPONENT client BUNDLE DESTINATION /Applications )
|
||||
|
Loading…
Reference in a new issue