mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-11 01:13:23 +00:00
Cleaned up the CMakeList file
This commit is contained in:
parent
7099aeda2e
commit
15df25f947
@ -1,62 +1,64 @@
|
|||||||
set(LAUNCHER
|
set(LAUNCHER
|
||||||
datafilespage.cpp
|
datafilespage.cpp
|
||||||
lineedit.cpp
|
graphicspage.cpp
|
||||||
main.cpp
|
lineedit.cpp
|
||||||
maindialog.cpp
|
main.cpp
|
||||||
playpage.cpp
|
maindialog.cpp
|
||||||
graphicspage.cpp
|
naturalsort.cpp
|
||||||
naturalsort.cpp
|
playpage.cpp
|
||||||
|
pluginsmodel.cpp
|
||||||
pluginsmodel.cpp
|
pluginsview.cpp
|
||||||
pluginsview.cpp
|
|
||||||
|
|
||||||
datafilespage.hpp
|
|
||||||
lineedit.hpp
|
|
||||||
maindialog.hpp
|
|
||||||
playpage.hpp
|
|
||||||
combobox.hpp
|
|
||||||
graphicspage.hpp
|
|
||||||
naturalsort.hpp
|
|
||||||
|
|
||||||
pluginsmodel.hpp
|
|
||||||
pluginsview.hpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(MOC_HDRS
|
set(LAUNCHER_HEADER
|
||||||
datafilespage.hpp
|
combobox.hpp
|
||||||
lineedit.hpp
|
datafilespage.hpp
|
||||||
maindialog.hpp
|
graphicspage.hpp
|
||||||
playpage.hpp
|
lineedit.hpp
|
||||||
combobox.hpp
|
maindialog.hpp
|
||||||
graphicspage.hpp
|
naturalsort.hpp
|
||||||
|
playpage.hpp
|
||||||
pluginsmodel.hpp
|
pluginsmodel.hpp
|
||||||
pluginsview.hpp
|
pluginsview.hpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Headers that must be pre-processed
|
||||||
|
set(LAUNCHER_HEADER_MOC
|
||||||
|
combobox.hpp
|
||||||
|
datafilespage.hpp
|
||||||
|
graphicspage.hpp
|
||||||
|
lineedit.hpp
|
||||||
|
maindialog.hpp
|
||||||
|
playpage.hpp
|
||||||
|
pluginsmodel.hpp
|
||||||
|
pluginsview.hpp
|
||||||
|
)
|
||||||
|
|
||||||
|
source_group(launcher FILES ${LAUNCHER} ${LAUNCHER_HEADER} ${LAUNCHER_HEADER_MOC})
|
||||||
|
|
||||||
find_package(Qt4 REQUIRED)
|
find_package(Qt4 REQUIRED)
|
||||||
set(QT_USE_QTGUI 1)
|
set(QT_USE_QTGUI 1)
|
||||||
|
|
||||||
QT4_ADD_RESOURCES(RCC_SRCS resources.qrc)
|
QT4_ADD_RESOURCES(RCC_SRCS resources.qrc)
|
||||||
QT4_WRAP_CPP(MOC_SRCS ${MOC_HDRS})
|
QT4_WRAP_CPP(MOC_SRCS ${LAUNCHER_HEADER_MOC})
|
||||||
|
|
||||||
include(${QT_USE_FILE})
|
include(${QT_USE_FILE})
|
||||||
|
|
||||||
# Main executable
|
# Main executable
|
||||||
add_executable(launcher
|
add_executable(launcher
|
||||||
${LAUNCHER}
|
${LAUNCHER}
|
||||||
${MISC} ${MISC_HEADER}
|
${MISC} ${MISC_HEADER}
|
||||||
${FILES} ${FILES_HEADER}
|
${FILES} ${FILES_HEADER}
|
||||||
${TO_UTF8}
|
${TO_UTF8}
|
||||||
${ESM}
|
${ESM}
|
||||||
${RCC_SRCS}
|
${RCC_SRCS}
|
||||||
${MOC_SRCS}
|
${MOC_SRCS}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(launcher
|
target_link_libraries(launcher
|
||||||
${Boost_LIBRARIES}
|
${Boost_LIBRARIES}
|
||||||
${OGRE_LIBRARIES}
|
${OGRE_LIBRARIES}
|
||||||
${QT_LIBRARIES}
|
${QT_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
configure_file(${CMAKE_SOURCE_DIR}/files/launcher.qss
|
configure_file(${CMAKE_SOURCE_DIR}/files/launcher.qss
|
||||||
|
Loading…
x
Reference in New Issue
Block a user