Fixed cmake to use find the proper xpm file in the xrc folder, also made the vbam core and fex library static to help with building on some platforms.

This commit is contained in:
wowzaman12 2015-05-10 22:54:19 +00:00
parent 12b030cced
commit 96788892c4
4 changed files with 4 additions and 2 deletions

View File

@ -313,6 +313,7 @@ ENDIF( ENABLE_FFMPEG )
ADD_LIBRARY (
vbamcore
STATIC
${PROJECT_SRCS}
${SRC_MAIN}
${SRC_GBA}

View File

@ -38,5 +38,6 @@ INCLUDE_DIRECTORIES(
ADD_LIBRARY(
fex
STATIC
${SRC_FEX}
)

View File

@ -124,7 +124,7 @@ SET( SRC_WX
cmdhandlers.h
cmd-evtable.h
#Icon File
wxvbam.xpm
xrc/wxvbam.xpm
)
IF(ENABLE_OPENAL)

View File

@ -28,7 +28,7 @@
// ImageMagick makes the name wxvbam, but wx expects wxvbam_xpm
#define wxvbam wxvbam_xpm
const
#include "wxvbam.xpm"
#include "xrx/wxvbam.xpm"
#undef wxvbam
#endif