1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:29:55 +00:00
openmw/apps/wizard/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

118 lines
3 KiB
Text
Raw Normal View History

set(WIZARD
2013-12-08 20:35:57 +00:00
componentselectionpage.cpp
conclusionpage.cpp
existinginstallationpage.cpp
importpage.cpp
2013-12-24 18:38:21 +00:00
inisettings.cpp
2013-12-08 20:35:57 +00:00
installationtargetpage.cpp
intropage.cpp
languageselectionpage.cpp
main.cpp
2013-12-08 20:35:57 +00:00
mainwizard.cpp
methodselectionpage.cpp
utils/componentlistwidget.cpp
)
2014-11-24 01:48:36 +00:00
if(WIN32)
list(APPEND WIZARD ${CMAKE_SOURCE_DIR}/files/windows/openmw-wizard.rc)
endif()
set(WIZARD_HEADER
2013-12-08 20:35:57 +00:00
componentselectionpage.hpp
conclusionpage.hpp
existinginstallationpage.hpp
importpage.hpp
2013-12-24 18:38:21 +00:00
inisettings.hpp
2013-12-08 20:35:57 +00:00
installationtargetpage.hpp
intropage.hpp
languageselectionpage.hpp
2013-12-08 20:35:57 +00:00
mainwizard.hpp
methodselectionpage.hpp
utils/componentlistwidget.hpp
)
set(WIZARD_UI
${CMAKE_CURRENT_SOURCE_DIR}/ui/componentselectionpage.ui
${CMAKE_CURRENT_SOURCE_DIR}/ui/conclusionpage.ui
${CMAKE_CURRENT_SOURCE_DIR}/ui/existinginstallationpage.ui
${CMAKE_CURRENT_SOURCE_DIR}/ui/importpage.ui
${CMAKE_CURRENT_SOURCE_DIR}/ui/installationtargetpage.ui
${CMAKE_CURRENT_SOURCE_DIR}/ui/intropage.ui
${CMAKE_CURRENT_SOURCE_DIR}/ui/languageselectionpage.ui
${CMAKE_CURRENT_SOURCE_DIR}/ui/methodselectionpage.ui
)
2014-11-22 23:51:57 +00:00
if (OPENMW_USE_UNSHIELD)
set (WIZARD ${WIZARD} installationpage.cpp unshield/unshieldworker.cpp)
set (WIZARD_HEADER ${WIZARD_HEADER} installationpage.hpp unshield/unshieldworker.hpp)
set (WIZARD_UI ${WIZARD_UI} ${CMAKE_CURRENT_SOURCE_DIR}/ui/installationpage.ui)
2014-11-22 23:51:57 +00:00
add_definitions(-DOPENMW_USE_UNSHIELD)
endif (OPENMW_USE_UNSHIELD)
source_group(wizard FILES ${WIZARD} ${WIZARD_HEADER})
set(QT_USE_QTGUI 1)
set (WIZARD_RES ${CMAKE_SOURCE_DIR}/files/wizard/wizard.qrc)
# Set some platform specific settings
if(WIN32)
set(WIZARD_RES ${WIZARD_RES} ${CMAKE_SOURCE_DIR}/files/windows/QWindowsVistaDark/dark.qrc)
set(GUI_TYPE WIN32)
set(QT_USE_QTMAIN TRUE)
endif(WIN32)
QT_ADD_RESOURCES(RCC_SRCS ${WIZARD_RES})
2023-02-05 11:30:28 +00:00
QT_WRAP_UI(UI_HDRS ${WIZARD_UI})
2014-11-22 23:51:57 +00:00
include_directories(${CMAKE_CURRENT_BINARY_DIR})
if (OPENMW_USE_UNSHIELD)
include_directories(${LIBUNSHIELD_INCLUDE_DIRS})
2014-11-22 23:51:57 +00:00
endif()
openmw_add_executable(openmw-wizard
${GUI_TYPE}
${WIZARD}
${WIZARD_HEADER}
${RCC_SRCS}
${UI_HDRS}
)
2023-12-24 14:44:50 +00:00
add_dependencies(openmw-wizard qm-files)
target_link_libraries(openmw-wizard
components_qt
)
2024-04-21 16:56:06 +00:00
target_link_libraries(openmw-wizard Qt::Widgets Qt::Core Qt::Svg)
2014-11-22 23:51:57 +00:00
if (OPENMW_USE_UNSHIELD)
target_link_libraries(openmw-wizard ${LIBUNSHIELD_LIBRARIES})
2014-11-22 23:51:57 +00:00
endif()
if(DPKG_PROGRAM)
INSTALL(TARGETS openmw-wizard RUNTIME DESTINATION games COMPONENT openmw-wizard)
endif()
if (BUILD_WITH_CODE_COVERAGE)
target_compile_options(openmw-wizard PRIVATE --coverage)
2023-03-10 14:01:18 +00:00
target_link_libraries(openmw-wizard gcov)
endif()
# Workaround for binutil => 2.23 problem when linking, should be fixed eventually upstream
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
2023-03-10 14:01:18 +00:00
target_link_libraries(openmw-wizard dl Xt)
endif()
if (WIN32)
INSTALL(TARGETS openmw-wizard RUNTIME DESTINATION ".")
endif(WIN32)
if(USE_QT)
set_property(TARGET openmw-wizard PROPERTY AUTOMOC ON)
endif(USE_QT)