/[pcsx2_0.9.7]/trunk/pcsx2/CMakeLists.txt
ViewVC logotype

Contents of /trunk/pcsx2/CMakeLists.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 280 - (show annotations) (download)
Thu Dec 23 12:02:12 2010 UTC (9 years, 1 month ago) by william
File MIME type: text/plain
File size: 15014 byte(s)
re-commit (had local access denied errors when committing)
1 # Check that people use the good file
2 if(NOT TOP_CMAKE_WAS_SOURCED)
3 message(FATAL_ERROR "
4 You did not 'cmake' the good CMakeLists.txt file. Use the one in the top dir.
5 It is advice to delete all wrongly generated cmake stuff => CMakeFiles & CMakeCache.txt")
6 endif(NOT TOP_CMAKE_WAS_SOURCED)
7
8
9 # set common flags
10 set(CommonFlags
11 -pthread
12 -fvisibility=hidden
13 -fno-guess-branch-probability
14 -fno-dse
15 -fno-tree-dse
16 -fno-strict-aliasing
17 -Wstrict-aliasing # Allow to track strict aliasing issue.
18 -pipe
19 -Wno-format
20 -Wno-unused-parameter
21 -Wno-unused-value
22 -Wunused-variable)
23
24 # set warning flags
25 set(DebugFlags
26 -W
27 -g)
28
29 # set optimization flags
30 set(OptimizationFlags
31 -falign-functions
32 -falign-jumps
33 -falign-labels
34 -falign-loops
35 -fcaller-saves
36 -fcprop-registers
37 -fcrossjumping
38 -fcse-follow-jumps
39 -fcse-skip-blocks
40 -fdefer-pop
41 -fdelete-null-pointer-checks
42 -fgcse
43 -fgcse-lm
44 -fif-conversion
45 -fif-conversion2
46 -fmerge-constants
47 -foptimize-sibling-calls
48 -fpeephole2
49 -fregmove
50 -freorder-blocks
51 -freorder-functions
52 -frerun-cse-after-loop
53 -fsched-interblock
54 -fsched-spec
55 -fstrict-overflow
56 -fthread-jumps
57 -ftree-ccp
58 -ftree-ch
59 -ftree-copyrename
60 -ftree-dce
61 -ftree-dominator-opts
62 -ftree-fre
63 -ftree-lrs
64 -ftree-pre
65 -ftree-sra
66 -ftree-ter
67 -ftree-vrp
68 -funit-at-a-time)
69
70 # Debug - Build
71 if(CMAKE_BUILD_TYPE STREQUAL Debug)
72
73 # executable name
74 set(Output pcsx2-dbg)
75
76 # add defines
77 add_definitions(${CommonFlags} ${DebugFlags} -DPCSX2_DEVBUILD -DPCSX2_DEBUG -DWX_PRECOMP)
78 endif(CMAKE_BUILD_TYPE STREQUAL Debug)
79
80 # Devel - Build
81 if(CMAKE_BUILD_TYPE STREQUAL Devel)
82
83 # executable name
84 set(Output pcsx2-dev)
85
86 # add defines
87 add_definitions(${CommonFlags} ${OptimizationFlags} -DPCSX2_DEVBUILD -DWX_PRECOMP -DNDEBUG)
88 endif(CMAKE_BUILD_TYPE STREQUAL Devel)
89
90 # Release - Build
91 if(CMAKE_BUILD_TYPE STREQUAL Release)
92
93 # executable name
94 set(Output pcsx2)
95
96 # add defines
97 add_definitions(${CommonFlags} ${OptimizationFlags} -DWX_PRECOMP -DNDEBUG)
98 endif(CMAKE_BUILD_TYPE STREQUAL Release)
99
100 # you must have both svn client executable and a source that contains svn metadata
101 if(Subversion_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.svn")
102 # execute subversion
103 Subversion_WC_INFO(${CMAKE_SOURCE_DIR} tmpvar)
104
105 # write svnrev.h
106 file(WRITE ${CMAKE_BINARY_DIR}/pcsx2/svnrev.h "#define SVN_REV ${tmpvar_WC_REVISION} \n#define SVN_MODS 0")
107 else(Subversion_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.svn")
108 # write svnrev.h
109 file(WRITE ${CMAKE_BINARY_DIR}/pcsx2/svnrev.h "#define SVN_REV 0 \n#define SVN_MODS 0")
110 endif(Subversion_FOUND AND EXISTS "${CMAKE_SOURCE_DIR}/.svn")
111
112 # variable with sources of this executable
113 set(pcsx2Sources
114 Cache.cpp
115 COP0.cpp
116 COP2.cpp
117 Counters.cpp
118 GameDatabase.cpp
119 Dump.cpp
120 Elfheader.cpp
121 FiFo.cpp
122 FPU.cpp
123 Gif.cpp
124 GS.cpp
125 GSState.cpp
126 Hw.cpp
127 HwRead.cpp
128 HwWrite.cpp
129 Interpreter.cpp
130 IopBios.cpp
131 IopCounters.cpp
132 IopDma.cpp
133 IopHw.cpp
134 IopIrq.cpp
135 IopMem.cpp
136 IopSio2.cpp
137 # Mdec.cpp
138 Memory.cpp
139 MMI.cpp
140 MTGS.cpp
141 Patch.cpp
142 Patch_Memory.cpp
143 Pcsx2Config.cpp
144 PluginManager.cpp
145 PrecompiledHeader.cpp
146 R3000A.cpp
147 R3000AInterpreter.cpp
148 R3000AOpcodeTables.cpp
149 R5900.cpp
150 R5900OpcodeImpl.cpp
151 R5900OpcodeTables.cpp
152 SaveState.cpp
153 ShiftJisToUnicode.cpp
154 Sif.cpp
155 Sif0.cpp
156 Sif1.cpp
157 Sio.cpp
158 SourceLog.cpp
159 SPR.cpp
160 Stats.cpp
161 System.cpp
162 Vif0_Dma.cpp
163 Vif1_Dma.cpp
164 Vif1_MFIFO.cpp
165 Vif.cpp
166 Vif_Codes.cpp
167 Vif_Transfer.cpp
168 Vif_Unpack.cpp
169 vtlb.cpp
170 VU0.cpp
171 VUmicro.cpp
172 VU0micro.cpp
173 VU0microInterp.cpp
174 VU1micro.cpp
175 VU1microInterp.cpp
176 VUflags.cpp
177 VUmicroMem.cpp
178 VUops.cpp)
179
180 # variable with sources of this executable
181 set(pcsx2Headers
182 Cache.h
183 cheatscpp.h
184 Common.h
185 Config.h
186 COP0.h
187 Counters.h
188 Dmac.h
189 Dump.h
190 GameDatabase.h
191 Elfheader.h
192 Gif.h
193 GS.h
194 Hardware.h
195 Hw.h
196 IopBios.h
197 IopCommon.h
198 IopCounters.h
199 IopDma.h
200 IopHw.h
201 IopMem.h
202 IopSio2.h
203 # Mdec.h
204 Memory.h
205 MemoryTypes.h
206 NakedAsm.h
207 Patch.h
208 Patch_Obsolete.h
209 PathDefs.h
210 Plugins.h
211 PrecompiledHeader.h
212 R3000A.h
213 R5900Exceptions.h
214 R5900.h
215 R5900OpcodeTables.h
216 SamplProf.h
217 SaveState.h
218 Sifcmd.h
219 Sif.h
220 Sio.h
221 sio_internal.h
222 SPR.h
223 Stats.h
224 SysForwardDefs.h
225 System.h
226 Vif_Dma.h
227 Vif.h
228 Vif_Unpack.h
229 vtlb.h
230 VUflags.h
231 VUmicro.h
232 VUops.h)
233
234 # CDVD sources
235 set(pcsx2CDVDSources
236 CDVD/CdRom.cpp
237 CDVD/CDVDaccess.cpp
238 CDVD/CDVD.cpp
239 CDVD/CDVDisoReader.cpp
240 CDVD/IsoFileFormats.cpp
241 CDVD/IsoFS/IsoFile.cpp
242 CDVD/IsoFS/IsoFSCDVD.cpp
243 CDVD/IsoFS/IsoFS.cpp)
244
245 # CDVD headers
246 set(pcsx2CDVDHeaders
247 CDVD/CdRom.h
248 CDVD/CDVDaccess.h
249 CDVD/CDVD.h
250 CDVD/CDVD_internal.h
251 CDVD/CDVDisoReader.h
252 CDVD/IsoFileFormats.h
253 CDVD/IsoFS/IsoDirectory.h
254 CDVD/IsoFS/IsoFileDescriptor.h
255 CDVD/IsoFS/IsoFile.h
256 CDVD/IsoFS/IsoFSCDVD.h
257 CDVD/IsoFS/IsoFS.h
258 CDVD/IsoFS/SectorSource.h)
259
260 # DebugTools sources
261 set(pcsx2DebugToolsSources
262 DebugTools/DisR3000A.cpp
263 DebugTools/DisR5900asm.cpp
264 DebugTools/DisR5900.cpp
265 DebugTools/DisVU0Micro.cpp
266 DebugTools/DisVU1Micro.cpp)
267
268 # DebugTools headers
269 set(pcsx2DebugToolsHeaders
270 DebugTools/Debug.h
271 DebugTools/DisASm.h
272 DebugTools/DisVUmicro.h
273 DebugTools/DisVUops.h)
274
275 # gui sources
276 set(pcsx2GuiSources
277 gui/AppAssert.cpp
278 gui/AppConfig.cpp
279 gui/AppCorePlugins.cpp
280 gui/AppCoreThread.cpp
281 gui/AppEventSources.cpp
282 gui/AppGameDatabase.cpp
283 gui/AppInit.cpp
284 gui/AppMain.cpp
285 gui/AppRes.cpp
286 gui/ConsoleLogger.cpp
287 gui/CpuUsageProvider.cpp
288 gui/CpuUsageProviderLnx.cpp
289 gui/Dialogs/AboutBoxDialog.cpp
290 gui/Dialogs/AppConfigDialog.cpp
291 gui/Dialogs/AssertionDialog.cpp
292 gui/Panels/BaseApplicableConfigPanel.cpp
293 gui/Panels/MemoryCardListView.cpp
294 gui/Dialogs/BaseConfigurationDialog.cpp
295 gui/Dialogs/BiosSelectorDialog.cpp
296 gui/Dialogs/ConfirmationDialogs.cpp
297 gui/Dialogs/CreateMemoryCardDialog.cpp
298 gui/Dialogs/FirstTimeWizard.cpp
299 gui/Dialogs/GameDatabaseDialog.cpp
300 gui/Dialogs/ImportSettingsDialog.cpp
301 gui/Dialogs/LogOptionsDialog.cpp
302 gui/Dialogs/McdConfigDialog.cpp
303 gui/Dialogs/PickUserModeDialog.cpp
304 gui/Dialogs/StuckThreadDialog.cpp
305 gui/Dialogs/SysConfigDialog.cpp
306 gui/ExecutorThread.cpp
307 gui/FrameForGS.cpp
308 gui/GlobalCommands.cpp
309 gui/i18n.cpp
310 gui/IsoDropTarget.cpp
311 gui/MainFrame.cpp
312 gui/MainMenuClicks.cpp
313 gui/MemoryCardFile.cpp
314 gui/Panels/BaseApplicableConfigPanel.cpp
315 gui/Panels/MemoryCardListPanel.cpp
316 gui/MessageBoxes.cpp
317 gui/MSWstuff.cpp
318 gui/Panels/AudioPanel.cpp
319 gui/Panels/BiosSelectorPanel.cpp
320 gui/Panels/CpuPanel.cpp
321 gui/Panels/DirPickerPanel.cpp
322 gui/Panels/GameDatabasePanel.cpp
323 gui/Panels/GameFixesPanel.cpp
324 gui/Panels/GSWindowPanel.cpp
325 gui/Panels/LogOptionsPanels.cpp
326 gui/Panels/MiscPanelStuff.cpp
327 gui/Panels/PathsPanel.cpp
328 gui/Panels/PluginSelectorPanel.cpp
329 gui/Panels/SpeedhacksPanel.cpp
330 gui/Panels/VideoPanel.cpp
331 gui/pxLogTextCtrl.cpp
332 gui/RecentIsoList.cpp
333 gui/Saveslots.cpp
334 gui/SysState.cpp
335 gui/UpdateUI.cpp
336 )
337
338 # gui headers
339 set(pcsx2GuiHeaders
340 gui/App.h
341 gui/ApplyState.h
342 gui/AppAccelerators.h
343 gui/AppCommon.h
344 gui/AppConfig.h
345 gui/AppCorePlugins.h
346 gui/AppEventListeners.h
347 gui/AppForwardDefs.h
348 gui/AppGameDatabase.h
349 gui/ConsoleLogger.h
350 gui/CpuUsageProvider.h
351 gui/Dialogs/BaseConfigurationDialog.inl
352 gui/Dialogs/ConfigurationDialog.h
353 gui/Dialogs/LogOptionsDialog.h
354 gui/Dialogs/ModalPopups.h
355 gui/i18n.h
356 gui/IsoDropTarget.h
357 gui/MainFrame.h
358 gui/MemoryCardFile.h
359 gui/MSWstuff.h
360 gui/Panels/ConfigurationPanels.h
361 gui/Panels/LogOptionsPanels.h
362 gui/Panels/MemoryCardPanels.h
363 gui/RecentIsoList.h
364 )
365
366 # Gui resources headers
367 set(pcsx2GuiResources
368 gui/Resources/AppIcon16.h
369 gui/Resources/AppIcon32.h
370 gui/Resources/AppIcon64.h
371 gui/Resources/BackgroundLogo.h
372 gui/Resources/ConfigIcon_Appearance.h
373 gui/Resources/ButtonIcon_Camera.h
374 gui/Resources/ConfigIcon_Cpu.h
375 gui/Resources/ConfigIcon_Gamefixes.h
376 gui/Resources/ConfigIcon_MemoryCard.h
377 gui/Resources/ConfigIcon_Paths.h
378 gui/Resources/ConfigIcon_Plugins.h
379 gui/Resources/ConfigIcon_Speedhacks.h
380 gui/Resources/ConfigIcon_Video.h
381 gui/Resources/Dualshock.h
382 )
383
384 # IPU sources
385 set(pcsx2IPUSources
386 IPU/IPU.cpp
387 IPU/IPU_Fifo.cpp
388 IPU/IPUdma.cpp
389 IPU/mpeg2lib/Idct.cpp
390 IPU/mpeg2lib/Mpeg.cpp
391 IPU/yuv2rgb.cpp)
392
393 # IPU headers
394 set(pcsx2IPUHeaders
395 IPU/IPU.h
396 IPU/IPU_Fifo.h
397 IPU/IPUdma.h
398 IPU/yuv2rgb.h)
399
400 # Linux sources
401 set(pcsx2LinuxSources
402 Linux/LnxKeyCodes.cpp)
403
404 # Linux headers
405 set(pcsx2LinuxHeaders
406 )
407
408 # ps2 sources
409 set(pcsx2ps2Sources
410 ps2/BiosTools.cpp
411 ps2/GIFpath.cpp
412 ps2/LegacyDmac.cpp
413 ps2/Iop/IopHwRead.cpp
414 ps2/Iop/IopHwWrite.cpp)
415
416 # ps2 headers
417 set(pcsx2ps2Headers
418 ps2/BiosTools.h
419 ps2/eeHwTraceLog.inl
420 ps2/HwInternal.h
421 ps2/Iop/IopHw_Internal.h)
422
423 # RDebug sources
424 set(pcsx2RDebugSources
425 RDebug/deci2.cpp
426 RDebug/deci2_dbgp.cpp
427 RDebug/deci2_dcmp.cpp
428 RDebug/deci2_drfp.cpp
429 RDebug/deci2_iloadp.cpp
430 RDebug/deci2_netmp.cpp
431 RDebug/deci2_ttyp.cpp)
432
433 # RDebug headers
434 set(pcsx2RDebugHeaders
435 RDebug/deci2_dbgp.h
436 RDebug/deci2_dcmp.h
437 RDebug/deci2_drfp.h
438 RDebug/deci2.h
439 RDebug/deci2_iloadp.h
440 RDebug/deci2_netmp.h
441 RDebug/deci2_ttyp.h)
442
443 # System sources
444 set(pcsx2SystemSources
445 System/SysCoreThread.cpp
446 System/SysThreadBase.cpp)
447
448 # System headers
449 set(pcsx2SystemHeaders
450 System/RecTypes.h
451 System/SysThreads.h)
452
453 # Utilities sources
454 set(pcsx2UtilitiesSources
455 Utilities/FileUtils.cpp)
456
457 # Utilities headers
458 set(pcsx2UtilitiesHeaders
459 Utilities/AsciiFile.h)
460
461 # Zip tools utilies sources
462 set(pcsx2ZipToolsSources
463 ZipTools/thread_gzip.cpp
464 ZipTools/thread_lzma.cpp)
465
466 # Zip tools utilies headers
467 set(pcsx2ZipToolsHeaders
468 ZipTools/ThreadedZipTools.h)
469
470
471 # Windows sources
472 set(pcsx2WindowsSources
473 windows/cheats/browser.cpp
474 windows/cheats/cheats.cpp
475 windows/DwmSetup.cpp
476 windows/ini.cpp
477 windows/PatchBrowser.cpp
478 windows/SampleProf.cp
479 windows/WinCompressNTFS.cpp
480 windows/WinConsolePipe.cpp
481 windows/WinSysExec.cpp)
482
483 # Windows headers
484 set(pcsx2WindowsHeaders
485 windows/cheats/cheats.h
486 windows/resource.h
487 windows/Win32.h)
488
489 # x86 sources
490 set(pcsx2x86Sources
491 x86/BaseblockEx.cpp
492 x86/iCOP0.cpp
493 x86/iCore.cpp
494 x86/iFPU.cpp
495 x86/iFPUd.cpp
496 x86/iMisc.cpp
497 x86/iMMI.cpp
498 x86/iPsxMem.cpp
499 x86/iR3000A.cpp
500 x86/iR3000Atables.cpp
501 x86/iR5900Misc.cpp
502 x86/ir5900tables.cpp
503 x86/iVU1micro.cpp
504 x86/ix86-32/iCore-32.cpp
505 x86/ix86-32/iR5900-32.cpp
506 x86/ix86-32/iR5900Arit.cpp
507 x86/ix86-32/iR5900AritImm.cpp
508 x86/ix86-32/iR5900Branch.cpp
509 x86/ix86-32/iR5900Jump.cpp
510 x86/ix86-32/iR5900LoadStore.cpp
511 x86/ix86-32/iR5900Move.cpp
512 x86/ix86-32/iR5900MultDiv.cpp
513 x86/ix86-32/iR5900Shift.cpp
514 x86/ix86-32/iR5900Templates.cpp
515 x86/ix86-32/recVTLB.cpp
516 x86/newVif_Dynarec.cpp
517 x86/newVif_Unpack.cpp
518 x86/newVif_UnpackSSE.cpp
519 x86/sVU_Lower.cpp
520 x86/sVU_Micro.cpp
521 x86/sVU_Upper.cpp
522 x86/sVU_zerorec.cpp
523 )
524
525 # x86 headers
526 set(pcsx2x86Headers
527 x86/BaseblockEx.h
528 x86/iCOP0.h
529 x86/iCore.h
530 x86/iFPU.h
531 x86/iMMI.h
532 x86/iR3000A.h
533 x86/iR5900Arit.h
534 x86/iR5900AritImm.h
535 x86/iR5900Branch.h
536 x86/iR5900.h
537 x86/iR5900Jump.h
538 x86/iR5900LoadStore.h
539 x86/iR5900Move.h
540 x86/iR5900MultDiv.h
541 x86/iR5900Shift.h
542 x86/microVU.h
543 x86/microVU_IR.h
544 x86/microVU_Misc.h
545 x86/microVU_Alloc.inl
546 x86/microVU_Analyze.inl
547 x86/microVU_Branch.inl
548 x86/microVU_Clamp.inl
549 x86/microVU_Compile.inl
550 x86/microVU.cpp
551 x86/microVU_Execute.inl
552 x86/microVU_Flags.inl
553 x86/microVU_Log.inl
554 x86/microVU_Lower.inl
555 x86/microVU_Macro.inl
556 x86/microVU_Misc.inl
557 x86/microVU_Tables.inl
558 x86/microVU_Upper.inl
559 x86/newVif.h
560 x86/newVif_HashBucket.h
561 x86/newVif_UnpackSSE.h
562 x86/sVU_Compare.h
563 x86/sVU_Debug.h
564 x86/sVU_Micro.h
565 x86/sVU_zerorec.h
566 )
567
568 # colect .asm files
569 set(pcsx2AsmFiles
570 IPU/yuv2rgb.asm
571 x86/ix86-32/aVif_proc-32.asm)
572
573 # collect .S files
574 set(pcsx2SSources
575 x86/aVUzerorec.S)
576
577 # change language of .S-files to c++
578 set_source_files_properties(${pcsx2SSources} PROPERTIES LANGUAGE CXX)
579
580 # common Sources
581 set(Common
582 ${pcsx2Sources}
583 ${pcsx2Headers}
584 ${pcsx2CDVDSources}
585 ${pcsx2CDVDHeaders}
586 ${pcsx2DebugToolsSources}
587 ${pcsx2DebugToolsSources}
588 ${pcsx2GuiSources}
589 ${pcsx2GuiResources}
590 ${pcsx2GuiHeaders}
591 ${pcsx2IPUSources}
592 ${pcsx2IPUHeaders}
593 ${pcsx2ps2Sources}
594 ${pcsx2ps2Headers}
595 ${pcsx2SystemSources}
596 ${pcsx2SystemHeaders}
597 ${pcsx2UtilitiesSources}
598 ${pcsx2UtilitiesHeaders}
599 ${pcsx2x86Sources}
600 ${pcsx2x86Headers}
601 ${pcsx2ZipToolsSources}
602 ${pcsx2ZipToolsHeaders}
603 ${pcsx2SSources})
604
605 # platform sources
606 # Linux
607 if(Linux)
608 set(Platform
609 ${pcsx2LinuxSources}
610 ${pcsx2LinuxHeaders})
611 endif(Linux)
612
613 # Windows
614 if(Windows)
615 set(Platform
616 ${pcsx2WindowsSources}
617 ${pcsx2WindowsHeaders})
618 endif(Windows)
619
620 # MacOSX
621 if(MacOSX)
622 set(PlatformSources
623 )
624 endif(MacOSX)
625
626 # additonal include directories
627 include_directories(.
628 gui
629 x86
630 ${CMAKE_BINARY_DIR}/pcsx2)
631
632 # set runtime output directory
633 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
634
635 # add executable
636 add_executable(${Output}
637 ${Common}
638 ${Platform})
639
640 # Generate the resources files
641 add_custom_command(OUTPUT "gui/Resources/AppIcon16.h" COMMAND bin2cpp "gui/Resources/AppIcon16.png")
642 add_custom_command(OUTPUT "gui/Resources/AppIcon32.h" COMMAND bin2cpp "gui/Resources/AppIcon32.png")
643 add_custom_command(OUTPUT "gui/Resources/AppIcon64.h" COMMAND bin2cpp "gui/Resources/AppIcon64.png")
644 add_custom_command(OUTPUT "gui/Resources/BackgroundLogo.h" COMMAND bin2cpp "gui/Resources/BackgroundLogo.png")
645 add_custom_command(OUTPUT "gui/Resources/ButtonIcon_Camera.h" COMMAND bin2cpp "gui/Resources/ButtonIcon_Camera.png")
646 add_custom_command(OUTPUT "gui/Resources/ConfigIcon_Appearance.h" COMMAND bin2cpp "gui/Resources/ConfigIcon_Appearance.png")
647 add_custom_command(OUTPUT "gui/Resources/ConfigIcon_Cpu.h" COMMAND bin2cpp "gui/Resources/ConfigIcon_Cpu.png")
648 add_custom_command(OUTPUT "gui/Resources/ConfigIcon_Gamefixes.h" COMMAND bin2cpp "gui/Resources/ConfigIcon_Gamefixes.png")
649 add_custom_command(OUTPUT "gui/Resources/ConfigIcon_MemoryCard.h" COMMAND bin2cpp "gui/Resources/ConfigIcon_MemoryCard.png")
650 add_custom_command(OUTPUT "gui/Resources/ConfigIcon_Paths.h" COMMAND bin2cpp "gui/Resources/ConfigIcon_Paths.png")
651 add_custom_command(OUTPUT "gui/Resources/ConfigIcon_Plugins.h" COMMAND bin2cpp "gui/Resources/ConfigIcon_Plugins.png")
652 add_custom_command(OUTPUT "gui/Resources/ConfigIcon_Speedhacks.h" COMMAND bin2cpp "gui/Resources/ConfigIcon_Speedhacks.png")
653 add_custom_command(OUTPUT "gui/Resources/ConfigIcon_Video.h" COMMAND bin2cpp "gui/Resources/ConfigIcon_Video.png")
654 add_custom_command(OUTPUT "gui/Resources/Dualshock.h" COMMAND bin2cpp "gui/Resources/Dualshock.jpg")
655
656 # link target with project internal libraries
657 target_link_libraries(${Output} Utilities x86emitter)
658
659 # link target with wx
660 target_link_libraries(${Output} ${wxWidgets_LIBRARIES})
661
662 if(Linux)
663 # link target with gtk2
664 target_link_libraries(${Output} ${GTK2_LIBRARIES})
665 endif(Linux)
666
667 # link target with zlib
668 target_link_libraries(${Output} ${ZLIB_LIBRARIES})
669
670 # User flags options
671 if(NOT USER_CMAKE_LD_FLAGS STREQUAL "")
672 target_link_libraries(${Output} "${USER_CMAKE_LD_FLAGS}")
673 endif(NOT USER_CMAKE_LD_FLAGS STREQUAL "")

  ViewVC Help
Powered by ViewVC 1.1.22