Update Windows readme for CMake
This commit is contained in:
parent
9f121e5493
commit
a2a66f611c
@ -1,26 +1,17 @@
|
|||||||
This project has begun being ported to Windows. A working solution
|
This project has been ported to Windows, including stack tracing, signal
|
||||||
file exists in this directory:
|
handling, and unit tests.
|
||||||
google-glog.sln
|
|
||||||
|
|
||||||
You can load this solution file into VC++ 9.0 (Visual Studio
|
A Visual Studio solution file is explicitly not provided because it is not
|
||||||
2008). You may also be able to use this solution file with older
|
maintainable. Instead, a CMake build system exists to generate the correct
|
||||||
Visual Studios by converting the solution file.
|
solution for your version of Visual Studio.
|
||||||
|
|
||||||
Note that stack tracing and some unittests are not ported
|
In short,
|
||||||
yet.
|
(1) Install CMake from: https://cmake.org/download/
|
||||||
|
(2) With CMake on your PATH, run `cmake .` to generate the build files
|
||||||
|
(3) Either use `cmake --build`, or open the generated solution
|
||||||
|
|
||||||
You can also link glog code in statically -- see the example project
|
CMake provides different generators, and by default will pick the most relevant
|
||||||
libglog_static and logging_unittest_static, which does this. For this
|
one to your environment. If you need a specific version of Visual Studio, use
|
||||||
to work, you'll need to add "/D GOOGLE_GLOG_DLL_DECL=" to the compile
|
`cmake . -G <generator-name>`, and see `cmake --help` for the available
|
||||||
line of every glog's .cc file.
|
generators. Also see `-T <toolset-name>`, which can used to request the native
|
||||||
|
x64 toolchain with `-T host=x64`.
|
||||||
I have little experience with Windows programming, so there may be
|
|
||||||
better ways to set this up than I've done! If you run across any
|
|
||||||
problems, please post to the google-glog Google Group, or report
|
|
||||||
them on the google-glog Google Code site:
|
|
||||||
http://groups.google.com/group/google-glog
|
|
||||||
https://github.com/google/glog/issues
|
|
||||||
|
|
||||||
-- Shinichiro Hamaji
|
|
||||||
|
|
||||||
Last modified: 23 January 2009
|
|
||||||
Loading…
Reference in New Issue
Block a user