Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zonomasa/7c474a63eb2954e97631 to your computer and use it in GitHub Desktop.
Save zonomasa/7c474a63eb2954e97631 to your computer and use it in GitHub Desktop.
msgpack-c のtest をCMake でビルドする
$ cp -r ${ANYWHERE}/gtest-1.7.0 ./msgpack-c/test
$ cd msgpack-c
$ cmake . -DGTEST_BOTH_LIBRARIES=test/gtest-1.7.0 -DGTEST_INCLUDE_DIR=test/gtest-1.7.0/include -DMSGPACK_BUILD_TESTS=ON -DGTEST_LIBRARY=test/gtest-1.7.0/libgtest.a -DGTEST_MAIN_LIBRARY=test/gtest-1.7.0/libgtest_main.a
$ make
$ cd test
$ ./msgpack_test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment