-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
85 lines (64 loc) · 3.1 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# ./CMakeLists.txt
project(QtLobby) # the name of your project
cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
set(QTLOBBY_VERSION 1.0alpha)
if("$ENV{SVN_REV}" GREATER 0)
set(SVN_REV $ENV{SVN_REV})
message(STATUS Overriding SVN_REV from environment variable)
else("$ENV{SVN_REV}" GREATER 0)
execute_process(COMMAND svnversion -n WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} OUTPUT_VARIABLE SVN_REV)
endif("$ENV{SVN_REV}" GREATER 0)
option(BUILDBOT "Use buildbot build configuration (used for cross compiling)" OFF)
mark_as_advanced(BUILDBOT)
option(TRANSLATIONS "Create .qm files" ON)
set(QT_BINARY_DIR "/home/t0/qtsdk-2010.05/qt/bin")
set(QT_LIBRARY_DIR "/home/t0/qtsdk-2010.05/qt/lib")
set(QT_INCLUDE_DIR "/home/t0/qtsdk-2010.05/qt/include")
set(QT_QTCORE_INCLUDE_DIR "/home/t0/qtsdk-2010.05/qt/include/QtCore")
set(QT_QTDBUS_INCLUDE_DIR "/home/t0/qtsdk-2010.05/qt/include/QtDBus")
set(QT_QTGUI_INCLUDE_DIR "/home/t0/qtsdk-2010.05/qt/include/QtGui")
set(QT_QTNETWORK_INCLUDE_DIR "/home/t0/qtsdk-2010.05/qt/include/QtNetwork")
set(QT_QTOPENGL_INCLUDE_DIR "/home/t0/qtsdk-2010.05/qt/include/QtOpenGL")
set(QT_QTSCRIPT_INCLUDE_DIR "/home/t0/qtsdk-2010.05/qt/include/QtScript")
set(QT_QTSQL_INCLUDE_DIR "/home/t0/qtsdk-2010.05/qt/include/QtSql")
set(QT_QTXML_INCLUDE_DIR "/home/t0/qtsdk-2010.05/qt/include/QtXml")
set(QT_USE_QTCORE true)
set(QT_USE_QTGUI true)
set(QT_USE_QTSCRIPT true)
set(QT_USE_QTNETWORK true)
set(QT_USE_QTOPENGL true)
set(QT_USE_QTXML true)
set(QT_USE_QTSQL true)
find_package(OpenGL)
if(NOT OPENGL_FOUND)
message("opengl not found!")
endif(NOT OPENGL_FOUND)
if(NOT OPENGL_GLU_FOUND)
message("GLU not found!")
endif(NOT OPENGL_GLU_FOUND)
if(WIN32 OR BUILDBOT)
option(PURE_WINAPI_UNITSYNC_LOADER "Use pure Win API unitsync loader(helps against some loading bugs)" ON)
mark_as_advanced(PURE_WINAPI_UNITSYNC_LOADER)
find_package(Qt4 COMPONENTS QtCore QtGui QtScript QtNetwork QtOpenGL QtXml QtSql REQUIRED) # -QtDbus
else(WIN32 OR BUILDBOT)
set(QT_USE_QTDBUS true)
find_package(Qt4 COMPONENTS QtCore QtGui QtDbus QtScript QtNetwork QtOpenGL QtXml QtSql REQUIRED)
endif(WIN32 OR BUILDBOT)
find_package(QScintilla REQUIRED)
find_package(QtScriptTools REQUIRED)
file(GLOB jobjol "${CMAKE_SOURCE_DIR}/share/qtlobby/icons/jobjol/?*.*")
install(FILES ${jobjol} DESTINATION share/qtlobby/icons/jobjol)
file(GLOB trolltech "${CMAKE_SOURCE_DIR}/share/qtlobby/icons/trolltech/?*.*")
install(FILES ${trolltech} DESTINATION share/qtlobby/icons/trolltech)
file(GLOB icons "${CMAKE_SOURCE_DIR}/share/qtlobby/icons/?*.*")
install(FILES ${icons} DESTINATION share/qtlobby/icons)
file(GLOB flags "${CMAKE_SOURCE_DIR}/share/qtlobby/flags/?*.*")
install(FILES ${flags} DESTINATION share/qtlobby/flags)
file(GLOB shaders "${CMAKE_SOURCE_DIR}/share/qtlobby/shaders/?*.*")
install(FILES ${shaders} DESTINATION share/qtlobby/shaders)
file(GLOB javascript "${CMAKE_SOURCE_DIR}/share/qtlobby/javascript/?*.*")
install(FILES ${javascript} DESTINATION share/qtlobby/javascript)
file(GLOB i18n "${CMAKE_SOURCE_DIR}/i18n/?*.qm")
install(FILES ${i18n} DESTINATION share/qtlobby/i18n)
add_subdirectory(src)