From: Werner S. <sm...@ia...> - 2007-04-07 18:13:45
|
Hi Winson, > One question I have now is that how I should change > the configuration so that the compiler can find > 'plhershey-unicode-gen.exe' on my computer and do the > header file generation? Perhaps add a couple of lines > in CMakeLists.txt, but which one and what shall I add? > Thanks. > That you got this far is already a great success! As already told, nobody tested so far the project files for Visual C++ 2005. Anyway, it is no surprise that exactly here are some problems. First from c-code 'plhershey-unicode-gen.exe' is build and than this exe must be run to build the header file. I don't know why Visual C++ 2005 doesn't find the exe file, since in the CMakeLists.txt the path to that exe is explicitly given: add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/plhershey-unicode.h COMMAND ${CMAKE_CURRENT_BINARY_DIR}/plhershey-unicode-gen${EXEEXT} ${CMAKE_SOURCE_DIR}/fonts/plhershey-unicode.csv via ${CMAKE_CURRENT_BINARY_DIR}. I can't test it in the moment, but you could have a look at the project file which is just a normal text file and find 'plhershey-unicode-gen.exe' and see what path is given. I think that this might be a cmake bug since this works for all other platforms/compilers tested so far. regards, Werner |