代码拉取完成,页面将自动刷新
env = Environment(CCFLAGS = '-g')
env['PLATFORM'] = 'win32'
#gtest库
gtestFile = [ '3rd/gtest/googletest/src/gtest-all.cc']
gmainFile = [ '3rd/gtest/googletest/src/gtest_main.cc']
#word count and parse word 库
wordCountFile = [ 'src/word_count.c']
parseWordsFile = [ 'src/word_parser.c', 'src/log.c']
#sourceFile
sourceFile = [ 'tests/word_count_test.cpp']
includePath = [ '3rd/gtest/googletest/include', '3rd/gtest/googletest', './src']
libPath = [ '3rd/gtest/googletest/lib', './bin']
libs = [ 'gtest', 'gtest_main', 'word_count' , 'parse_word']
StaticLibrary('3rd/gtest/googletest/lib/gtest',source=gtestFile,CPPPATH=includePath)
StaticLibrary('3rd/gtest/googletest/lib/gtest_main',source=gmainFile,CPPPATH=includePath)
StaticLibrary('bin/word_count',source=wordCountFile,CPPPATH=includePath)
StaticLibrary('bin/parse_word',source=parseWordsFile,CPPPATH=includePath)
env.Program( 'bin/word_count_test', source=sourceFile,CPPPATH=includePath,LIBS=libs,LIBPATH=libPath)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。