daily pastebin goal
11%
SHARE
TWEET

Untitled

a guest Jun 24th, 2011 131 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #project()
  2.  
  3. set(LAUNCHER
  4.     datafilespage.cpp
  5.     graphicspage.cpp
  6.     lineedit.cpp
  7.     main.cpp
  8.     maindialog.cpp
  9.     naturalsort.cpp
  10.     playpage.cpp
  11.     pluginsmodel.cpp
  12.     pluginsview.cpp
  13. )
  14.  
  15. set(LAUNCHER_HEADER
  16.     combobox.hpp
  17.     datafilespage.hpp
  18.     graphicspage.hpp
  19.     lineedit.hpp
  20.     maindialog.hpp
  21.     naturalsort.hpp
  22.     playpage.hpp
  23.     pluginsmodel.hpp
  24.     pluginsview.hpp
  25. )
  26.  
  27. # Headers that must be pre-processed
  28. set(LAUNCHER_HEADER_MOC
  29.     combobox.hpp
  30.     datafilespage.hpp
  31.     graphicspage.hpp
  32.     lineedit.hpp
  33.     maindialog.hpp
  34.     playpage.hpp
  35.     pluginsmodel.hpp
  36.     pluginsview.hpp
  37. )
  38.  
  39. source_group(launcher FILES ${LAUNCHER} ${LAUNCHER_HEADER} ${LAUNCHER_HEADER_MOC})
  40.  
  41. find_package(Qt4 REQUIRED)
  42. set(QT_USE_QTGUI 1)
  43.  
  44. QT4_ADD_RESOURCES(RCC_SRCS resources.qrc)
  45. QT4_WRAP_CPP(MOC_SRCS ${LAUNCHER_HEADER_MOC})
  46.  
  47. include(${QT_USE_FILE})
  48.  
  49. # Main executable
  50. add_executable(launcher
  51.     ${LAUNCHER}
  52.     ${MISC} ${MISC_HEADER}
  53.     ${FILES} ${FILES_HEADER}
  54.     ${TO_UTF8}
  55.     ${ESM}
  56.     ${RCC_SRCS}
  57.     ${MOC_SRCS}
  58. )
  59.  
  60. target_link_libraries(launcher
  61.     ${Boost_LIBRARIES}
  62.     ${OGRE_LIBRARIES}
  63.     ${QT_LIBRARIES}
  64. )
  65.  
  66. configure_file(${CMAKE_SOURCE_DIR}/files/launcher.qss
  67.     "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/launcher.qss")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top