1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 17:59:56 +00:00

Got rid of the console showing up on Windows and removed libpng stuff

This commit is contained in:
Pieter van der Kloet 2012-03-12 02:31:37 +01:00
parent 52dd5ab213
commit 96c0b8760e

View file

@ -41,10 +41,11 @@ 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)
if (NOT APPLE) # this dependency can be completely removed, but now it only tested on OS X # Set some platform specific settings
find_package(PNG REQUIRED) if(WIN32)
include_directories(${PNG_INCLUDE_DIR}) set(GUI_TYPE WIN32)
endif() set(QT_USE_QTMAIN TRUE)
endif(WIN32)
QT4_ADD_RESOURCES(RCC_SRCS resources.qrc) QT4_ADD_RESOURCES(RCC_SRCS resources.qrc)
QT4_WRAP_CPP(MOC_SRCS ${LAUNCHER_HEADER_MOC}) QT4_WRAP_CPP(MOC_SRCS ${LAUNCHER_HEADER_MOC})
@ -53,6 +54,7 @@ include(${QT_USE_FILE})
# Main executable # Main executable
add_executable(omwlauncher add_executable(omwlauncher
${GUI_TYPE}
${LAUNCHER} ${LAUNCHER}
${RCC_SRCS} ${RCC_SRCS}
${MOC_SRCS} ${MOC_SRCS}
@ -62,7 +64,6 @@ target_link_libraries(omwlauncher
${Boost_LIBRARIES} ${Boost_LIBRARIES}
${OGRE_LIBRARIES} ${OGRE_LIBRARIES}
${QT_LIBRARIES} ${QT_LIBRARIES}
${PNG_LIBRARY}
components components
) )