equal
deleted
inserted
replaced
41 endif(WIN32 AND NOT UNIX) |
41 endif(WIN32 AND NOT UNIX) |
42 |
42 |
43 |
43 |
44 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hwconsts.cpp.in ${CMAKE_CURRENT_BINARY_DIR}/hwconsts.cpp) |
44 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hwconsts.cpp.in ${CMAKE_CURRENT_BINARY_DIR}/hwconsts.cpp) |
45 |
45 |
46 set(hwfr_src |
46 set( hwfr_src |
47 game.cpp |
47 game.cpp |
48 main.cpp |
48 main.cpp |
49 hwform.cpp |
49 hwform.cpp |
50 team.cpp |
50 team.cpp |
51 namegen.cpp |
51 namegen.cpp |
98 set(hwfr_src ${hwfr_src} ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o) |
98 set(hwfr_src ${hwfr_src} ${CMAKE_CURRENT_BINARY_DIR}/hedgewars_rc.o) |
99 else(MINGW) |
99 else(MINGW) |
100 set(hwfr_src ${hwfr_src} hedgewars.rc) |
100 set(hwfr_src ${hwfr_src} hedgewars.rc) |
101 endif(MINGW) |
101 endif(MINGW) |
102 |
102 |
103 set(hwfr_moc_hdrs |
103 set( hwfr_moc_hdrs |
104 game.h |
104 game.h |
105 hats.h |
105 hats.h |
106 hwform.h |
106 hwform.h |
107 teamselect.h |
107 teamselect.h |
108 teamselhelper.h |
108 teamselhelper.h |
139 togglebutton.h |
139 togglebutton.h |
140 bgwidget.h |
140 bgwidget.h |
141 ) |
141 ) |
142 |
142 |
143 if(APPLE) |
143 if(APPLE) |
144 find_package(Sparkle) |
144 find_package(Sparkle) |
145 |
145 |
146 set(hwfr_src ${hwfr_src} InstallController.cpp CocoaInitializer.mm M3Panel.mm M3InstallController.m NSWorkspace_RBAdditions.m) |
146 set(hwfr_src ${hwfr_src} InstallController.cpp CocoaInitializer.mm M3Panel.mm M3InstallController.m NSWorkspace_RBAdditions.m) |
147 if(SPARKLE_FOUND) |
147 if(SPARKLE_FOUND) |
148 set(hwfr_src ${hwfr_src} AutoUpdater.cpp SparkleAutoUpdater.mm) |
148 set(hwfr_src ${hwfr_src} AutoUpdater.cpp SparkleAutoUpdater.mm) |
|
149 endif() |
149 endif() |
150 endif() |
150 endif() |
151 |
151 |
152 set( hwfr_hdrs |
152 set(hwfr_hdrs |
|
153 binds.h |
153 binds.h |
154 ui_hwform.h |
154 ui_hwform.h |
155 predefteams.h |
155 predefteams.h |
156 KB.h |
156 KB.h |
157 hwconsts.h |
157 hwconsts.h |
158 ) |
158 ) |
159 |
159 |
160 set(hwfr_rez hedgewars.qrc) |
160 set(hwfr_rez hedgewars.qrc) |
161 |
161 |
162 qt4_add_resources(hwfr_rez_src |
162 qt4_add_resources(hwfr_rez_src ${hwfr_rez}) |
163 ${hwfr_rez}) |
163 |
164 |
164 qt4_wrap_cpp(hwfr_moc_srcs ${hwfr_moc_hdrs}) |
165 qt4_wrap_cpp(hwfr_moc_srcs |
|
166 ${hwfr_moc_hdrs}) |
|
167 |
165 |
168 add_executable(hedgewars WIN32 |
166 add_executable(hedgewars WIN32 |
169 ${hwfr_src} |
167 ${hwfr_src} |
170 ${hwfr_moc_srcs} |
168 ${hwfr_moc_srcs} |
171 ${hwfr_hdrs} |
169 ${hwfr_hdrs} |
172 ${hwfr_rez_src}) |
170 ${hwfr_rez_src} |
|
171 ) |
173 |
172 |
174 |
173 |
175 set(HW_LINK_LIBS |
174 set(HW_LINK_LIBS |
176 ${QT_LIBRARIES} |
175 ${QT_LIBRARIES} |
177 ${SDL_LIBRARY} |
176 ${SDL_LIBRARY} |
178 ${SDLMIXER_LIBRARY} |
177 ${SDLMIXER_LIBRARY} |
179 ) |
178 ) |
180 |
179 |
181 if(APPLE) |
180 if(APPLE) |
182 set(HW_LINK_LIBS |
181 set(HW_LINK_LIBS IOKit ${HW_LINK_LIBS}) |
183 ${HW_LINK_LIBS} |
|
184 IOKit |
|
185 ) |
|
186 if (SPARKLE_FOUND) |
182 if (SPARKLE_FOUND) |
187 set(HW_LINK_LIBS ${HW_LINK_LIBS} ${SPARKLE_LIBRARY}) |
183 set(HW_LINK_LIBS ${HW_LINK_LIBS} ${SPARKLE_LIBRARY}) |
188 add_definitions(-DSPARKLE_ENABLED) |
184 add_definitions(-DSPARKLE_ENABLED) |
189 endif() |
185 endif() |
190 endif() |
186 endif() |