You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
2.2 KiB
CMake
97 lines
2.2 KiB
CMake
11 years ago
|
set(WIZARD
|
||
|
main.cpp
|
||
|
wizard.cpp
|
||
|
|
||
|
)
|
||
|
# if(NOT WIN32)
|
||
|
# LIST(APPEND WIZARD unshieldthread.cpp)
|
||
|
# endif(NOT WIN32)
|
||
|
|
||
|
set(WIZARD_HEADER
|
||
|
wizard.hpp
|
||
|
)
|
||
|
# if(NOT WIN32)
|
||
|
# LIST(APPEND WIZARD_HEADER unshieldthread.hpp)
|
||
|
# endif(NOT WIN32)
|
||
|
|
||
|
|
||
|
# Headers that must be pre-processed
|
||
|
set(WIZARD_HEADER_MOC
|
||
|
wizard.hpp
|
||
|
)
|
||
|
|
||
|
# if(NOT WIN32)
|
||
|
# LIST(APPEND WIZARD_HEADER_MOC unshieldthread.hpp)
|
||
|
# endif(NOT WIN32)
|
||
|
|
||
|
|
||
|
set(WIZARD_UI
|
||
|
${CMAKE_SOURCE_DIR}/files/ui/wizard/componentselectionpage.ui
|
||
|
${CMAKE_SOURCE_DIR}/files/ui/wizard/conclusionpage.ui
|
||
|
${CMAKE_SOURCE_DIR}/files/ui/wizard/configurationpage.ui
|
||
|
${CMAKE_SOURCE_DIR}/files/ui/wizard/existinginstallationpage.ui
|
||
|
${CMAKE_SOURCE_DIR}/files/ui/wizard/importpage.ui
|
||
|
${CMAKE_SOURCE_DIR}/files/ui/wizard/installationpage.ui
|
||
|
${CMAKE_SOURCE_DIR}/files/ui/wizard/installationtargetpage.ui
|
||
|
${CMAKE_SOURCE_DIR}/files/ui/wizard/intropage.ui
|
||
|
${CMAKE_SOURCE_DIR}/files/ui/wizard/methodselectionpage.ui
|
||
|
)
|
||
|
|
||
|
source_group(wizard FILES ${WIZARD} ${WIZARD_HEADER})
|
||
|
|
||
|
find_package(Qt4 REQUIRED)
|
||
|
set(QT_USE_QTGUI 1)
|
||
|
|
||
|
# Set some platform specific settings
|
||
|
if(WIN32)
|
||
|
set(GUI_TYPE WIN32)
|
||
|
set(QT_USE_QTMAIN TRUE)
|
||
|
endif(WIN32)
|
||
|
|
||
|
QT4_ADD_RESOURCES(RCC_SRCS ${CMAKE_SOURCE_DIR}/files/wizard/wizard.qrc)
|
||
|
QT4_WRAP_CPP(MOC_SRCS ${WIZARD_HEADER_MOC})
|
||
|
QT4_WRAP_UI(UI_HDRS ${WIZARD_UI})
|
||
|
|
||
|
|
||
|
include(${QT_USE_FILE})
|
||
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||
|
if(NOT WIN32)
|
||
|
include_directories(${LIBUNSHIELD_INCLUDE})
|
||
|
endif(NOT WIN32)
|
||
|
|
||
|
add_executable(openmw-wizard
|
||
|
${GUI_TYPE}
|
||
|
${WIZARD}
|
||
|
${WIZARD_HEADER}
|
||
|
${RCC_SRCS}
|
||
|
${MOC_SRCS}
|
||
|
${UI_HDRS}
|
||
|
)
|
||
|
|
||
|
target_link_libraries(openmw-wizard
|
||
|
# ${Boost_LIBRARIES}
|
||
|
${QT_LIBRARIES}
|
||
|
)
|
||
|
if(NOT WIN32)
|
||
|
target_link_libraries(openmw-wizard
|
||
|
${LIBUNSHIELD_LIBRARY}
|
||
|
)
|
||
|
endif(NOT WIN32)
|
||
|
|
||
|
|
||
|
|
||
|
if(DPKG_PROGRAM)
|
||
|
INSTALL(TARGETS openmw-wizard RUNTIME DESTINATION games COMPONENT openmw-wizard)
|
||
|
endif()
|
||
|
|
||
|
if (BUILD_WITH_CODE_COVERAGE)
|
||
|
add_definitions (--coverage)
|
||
|
target_link_libraries(openmw-wizard gcov)
|
||
|
endif()
|
||
|
|
||
|
# Workaround for binutil => 2.23 problem when linking, should be fixed eventually upstream
|
||
|
if (UNIX AND NOT APPLE)
|
||
|
target_link_libraries(openmw-wizard dl Xt)
|
||
|
endif()
|
||
|
|