add CMake support to build gtest
This commit is contained in:
16
test/gtest-1.7.0/CMakeLists.txt
Normal file
16
test/gtest-1.7.0/CMakeLists.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
INCLUDE_DIRECTORIES(
|
||||
.
|
||||
include
|
||||
)
|
||||
|
||||
SET(gtest-1.7.0_SRCS
|
||||
src/gtest-all.cc
|
||||
)
|
||||
|
||||
#ADD_DEFINITIONS(-DGTEST_HAS_PTHREAD=1)
|
||||
ADD_DEFINITIONS(-D_VARIADIC_MAX=10)
|
||||
|
||||
FILE(GLOB_RECURSE gtest-1.7.0_HDRS "*.h")
|
||||
|
||||
ADD_LIBRARY(gtest ${gtest-1.7.0_SRCS} ${gtest-1.7.0_HDRS})
|
||||
Reference in New Issue
Block a user