modify test

This commit is contained in:
wyy 2013-12-14 22:18:39 -08:00
parent 72ba32dd0a
commit 3545eef281
7 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,7 @@
PROJECT(CPPJIEBA)
CMAKE_MINIMUM_REQUIRED (VERSION 2.8)
SET(CMAKE_INSTALL_PREFIX /usr)
ADD_DEFINITIONS(-std=c++0x -O3)
IF (DEFINED ENC)

View File

@ -1,4 +1,5 @@
#SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/test)
#SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/test)
ADD_EXECUTABLE(segment.demo segment.cpp)
ADD_EXECUTABLE(test_performance test_performance.cpp)
ADD_SUBDIRECTORY(unittest)

View File

@ -1,5 +0,0 @@
all: testp demo
testp:
g++ -o test_performance test_performance.cpp -std=c++0x -O3
demo:
g++ -o segment.demo segment.cpp -std=c++0x

View File

@ -1,6 +1,7 @@
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/test)
SET(GTEST_ROOT_DIR gtest-1.6.0)
INCLUDE_DIRECTORIES(${GTEST_ROOT_DIR} ${GTEST_ROOT_DIR}/include)
ADD_EXECUTABLE(test gtest_main.cc ${GTEST_ROOT_DIR}/src/gtest-all.cc)
TARGET_LINK_LIBRARIES(test pthread)