2011-03-29 01:36:26 +02:00
|
|
|
set(LAUNCHER
|
2011-06-24 17:37:12 +02:00
|
|
|
datafilespage.cpp
|
|
|
|
graphicspage.cpp
|
2018-08-07 22:57:16 +04:00
|
|
|
sdlinit.cpp
|
2011-06-24 17:37:12 +02:00
|
|
|
main.cpp
|
|
|
|
maindialog.cpp
|
|
|
|
playpage.cpp
|
2013-08-18 12:11:39 +01:00
|
|
|
textslotmsgbox.cpp
|
2014-01-27 20:14:02 +01:00
|
|
|
settingspage.cpp
|
2018-01-28 22:49:49 -06:00
|
|
|
advancedpage.cpp
|
2012-10-10 21:31:40 +02:00
|
|
|
|
2018-04-07 21:27:36 -05:00
|
|
|
utils/cellnameloader.cpp
|
2013-10-22 21:52:35 -05:00
|
|
|
utils/profilescombobox.cpp
|
|
|
|
utils/textinputdialog.cpp
|
|
|
|
utils/lineedit.cpp
|
2021-04-09 19:28:08 +00:00
|
|
|
utils/openalutil.cpp
|
2012-10-12 02:25:14 +02:00
|
|
|
|
2014-09-05 22:36:33 +10:00
|
|
|
${CMAKE_SOURCE_DIR}/files/windows/launcher.rc
|
2011-03-29 01:36:26 +02:00
|
|
|
)
|
|
|
|
|
2011-06-24 17:37:12 +02:00
|
|
|
set(LAUNCHER_HEADER
|
|
|
|
datafilespage.hpp
|
|
|
|
graphicspage.hpp
|
2018-08-07 22:57:16 +04:00
|
|
|
sdlinit.hpp
|
2011-06-24 17:37:12 +02:00
|
|
|
maindialog.hpp
|
|
|
|
playpage.hpp
|
2013-08-18 12:11:39 +01:00
|
|
|
textslotmsgbox.hpp
|
2014-01-27 20:14:02 +01:00
|
|
|
settingspage.hpp
|
2018-01-28 22:49:49 -06:00
|
|
|
advancedpage.hpp
|
2012-10-10 21:31:40 +02:00
|
|
|
|
2018-04-07 21:27:36 -05:00
|
|
|
utils/cellnameloader.hpp
|
2013-10-22 21:52:35 -05:00
|
|
|
utils/profilescombobox.hpp
|
|
|
|
utils/textinputdialog.hpp
|
|
|
|
utils/lineedit.hpp
|
2021-04-09 19:28:08 +00:00
|
|
|
utils/openalutil.hpp
|
2011-06-24 17:37:12 +02:00
|
|
|
)
|
2011-06-07 01:42:53 +02:00
|
|
|
|
2011-06-24 17:37:12 +02:00
|
|
|
# Headers that must be pre-processed
|
|
|
|
set(LAUNCHER_HEADER_MOC
|
|
|
|
datafilespage.hpp
|
|
|
|
graphicspage.hpp
|
|
|
|
maindialog.hpp
|
|
|
|
playpage.hpp
|
2013-08-18 12:11:39 +01:00
|
|
|
textslotmsgbox.hpp
|
2014-01-27 20:14:02 +01:00
|
|
|
settingspage.hpp
|
2018-01-28 22:49:49 -06:00
|
|
|
advancedpage.hpp
|
2012-10-10 21:31:40 +02:00
|
|
|
|
2018-04-07 21:27:36 -05:00
|
|
|
utils/cellnameloader.hpp
|
2013-10-22 21:52:35 -05:00
|
|
|
utils/textinputdialog.hpp
|
|
|
|
utils/profilescombobox.hpp
|
|
|
|
utils/lineedit.hpp
|
2021-04-09 19:28:08 +00:00
|
|
|
utils/openalutil.hpp
|
2013-10-22 21:52:35 -05:00
|
|
|
|
2011-03-29 01:36:26 +02:00
|
|
|
)
|
|
|
|
|
2013-03-02 23:49:31 +01:00
|
|
|
set(LAUNCHER_UI
|
2013-03-12 04:05:14 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/files/ui/datafilespage.ui
|
|
|
|
${CMAKE_SOURCE_DIR}/files/ui/graphicspage.ui
|
|
|
|
${CMAKE_SOURCE_DIR}/files/ui/mainwindow.ui
|
|
|
|
${CMAKE_SOURCE_DIR}/files/ui/playpage.ui
|
2013-10-22 21:52:35 -05:00
|
|
|
${CMAKE_SOURCE_DIR}/files/ui/contentselector.ui
|
2014-01-27 20:14:02 +01:00
|
|
|
${CMAKE_SOURCE_DIR}/files/ui/settingspage.ui
|
2018-01-28 22:49:49 -06:00
|
|
|
${CMAKE_SOURCE_DIR}/files/ui/advancedpage.ui
|
2013-03-02 23:49:31 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
source_group(launcher FILES ${LAUNCHER} ${LAUNCHER_HEADER})
|
2011-06-24 17:37:12 +02:00
|
|
|
|
2011-03-29 01:36:26 +02:00
|
|
|
set(QT_USE_QTGUI 1)
|
|
|
|
|
2012-03-12 02:31:37 +01:00
|
|
|
# Set some platform specific settings
|
|
|
|
if(WIN32)
|
|
|
|
set(GUI_TYPE WIN32)
|
|
|
|
set(QT_USE_QTMAIN TRUE)
|
|
|
|
endif(WIN32)
|
2011-06-26 15:37:06 +02:00
|
|
|
|
2020-06-22 12:17:06 +02:00
|
|
|
QT5_ADD_RESOURCES(RCC_SRCS ${CMAKE_SOURCE_DIR}/files/launcher/launcher.qrc)
|
|
|
|
QT5_WRAP_CPP(MOC_SRCS ${LAUNCHER_HEADER_MOC})
|
|
|
|
QT5_WRAP_UI(UI_HDRS ${LAUNCHER_UI})
|
2013-08-17 22:56:50 +01:00
|
|
|
|
2013-08-19 20:11:52 +01:00
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
if(NOT WIN32)
|
2014-10-29 11:26:06 +02:00
|
|
|
include_directories(${LIBUNSHIELD_INCLUDE_DIR})
|
2013-08-19 20:11:52 +01:00
|
|
|
endif(NOT WIN32)
|
2011-03-29 01:36:26 +02:00
|
|
|
|
|
|
|
# Main executable
|
2017-09-08 22:17:42 +01:00
|
|
|
openmw_add_executable(openmw-launcher
|
2012-03-12 02:31:37 +01:00
|
|
|
${GUI_TYPE}
|
2011-06-24 17:37:12 +02:00
|
|
|
${LAUNCHER}
|
2013-02-11 15:01:00 +01:00
|
|
|
${LAUNCHER_HEADER}
|
2011-06-24 17:37:12 +02:00
|
|
|
${RCC_SRCS}
|
|
|
|
${MOC_SRCS}
|
2013-03-02 23:49:31 +01:00
|
|
|
${UI_HDRS}
|
2011-03-29 01:36:26 +02:00
|
|
|
)
|
|
|
|
|
2016-11-13 22:49:01 -06:00
|
|
|
if (WIN32)
|
|
|
|
INSTALL(TARGETS openmw-launcher RUNTIME DESTINATION ".")
|
|
|
|
endif (WIN32)
|
|
|
|
|
2015-01-30 00:07:18 +01:00
|
|
|
target_link_libraries(openmw-launcher
|
2014-06-02 02:34:43 -05:00
|
|
|
${SDL2_LIBRARY_ONLY}
|
2021-04-09 19:28:08 +00:00
|
|
|
${OPENAL_LIBRARY}
|
2021-08-19 01:37:31 +02:00
|
|
|
components_qt
|
2011-03-29 01:36:26 +02:00
|
|
|
)
|
2013-08-17 22:56:50 +01:00
|
|
|
|
2020-06-22 12:17:06 +02:00
|
|
|
target_link_libraries(openmw-launcher Qt5::Widgets Qt5::Core)
|
2011-09-30 09:36:06 +02:00
|
|
|
|
2012-08-19 22:23:46 +03:00
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
|
|
|
add_definitions (--coverage)
|
2015-01-30 00:07:18 +01:00
|
|
|
target_link_libraries(openmw-launcher gcov)
|
2017-09-08 22:20:04 +01:00
|
|
|
endif()
|
|
|
|
|
2017-09-08 22:21:00 +01:00
|
|
|
|