Fixed the wx CMakeLists.txt so that it can be built from a directory other than trunk
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1406 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
3ed747e78c
commit
84695b301c
|
@ -74,9 +74,9 @@ file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/icons/wxvbam.xpm DESTINATION ${CMAKE_CURRE
|
||||||
# wxrc does not support xrs files in -c output (> 10x compression)
|
# wxrc does not support xrs files in -c output (> 10x compression)
|
||||||
# so do it manually using slow but portable bin2c.cmake script
|
# so do it manually using slow but portable bin2c.cmake script
|
||||||
ADD_CUSTOM_COMMAND(OUTPUT wxvbam.xrs
|
ADD_CUSTOM_COMMAND(OUTPUT wxvbam.xrs
|
||||||
COMMAND wxrc xrc/*.xrc -o wxvbam.xrs
|
COMMAND wxrc ${CMAKE_CURRENT_SOURCE_DIR}/xrc/*.xrc -o wxvbam.xrs
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
DEPENDS xrc/*.xrc)
|
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/xrc/*.xrc)
|
||||||
ADD_CUSTOM_COMMAND(OUTPUT builtin-xrc.h
|
ADD_CUSTOM_COMMAND(OUTPUT builtin-xrc.h
|
||||||
COMMAND ${CMAKE_COMMAND} -DINFILE=wxvbam.xrs -DOUTFILE=builtin-xrc.h -DVARNAME=builtin_xrs -P ${CMAKE_CURRENT_SOURCE_DIR}/bin2c.cmake
|
COMMAND ${CMAKE_COMMAND} -DINFILE=wxvbam.xrs -DOUTFILE=builtin-xrc.h -DVARNAME=builtin_xrs -P ${CMAKE_CURRENT_SOURCE_DIR}/bin2c.cmake
|
||||||
DEPENDS wxvbam.xrs)
|
DEPENDS wxvbam.xrs)
|
||||||
|
|
Loading…
Reference in New Issue