add search_agent to build.sh

This commit is contained in:
shzhulin3 2021-08-27 16:04:34 +08:00
parent ea922d5e98
commit 64e5a627ff
3 changed files with 14 additions and 1 deletions

View File

@ -29,11 +29,13 @@ index_write="index_write"
index_read="index_read"
index_storage="index_storage"
search_local="search_local"
search_agent="search_agent"
src_common="$srcdir/$common"
src_stat="$srcdir/$common/$stat"
src_index_write="$srcdir/$search_local/$index_write"
src_index_read="$srcdir/$search_local/$index_read"
src_search_agent="$srcdir/$search_agent"
src_index_storage="$srcdir/$search_local/$index_storage"
cd $src_common
@ -56,5 +58,9 @@ cmake .
make
cd $localdir
cd $src_search_agent
cmake .
make
cd $src_index_storage
make

View File

@ -10,11 +10,13 @@ index_write="index_write"
index_read="index_read"
index_storage="index_storage"
search_local="search_local"
search_agent="search_agent"
src_common="$srcdir/$common"
src_stat="$srcdir/$common/$stat"
src_index_write="$srcdir/$search_local/$index_write"
src_index_read="$srcdir/$search_local/$index_read"
src_search_agent="$srcdir/$search_agent"
src_index_storage="$srcdir/$search_local/$index_storage"
cd $src_common
@ -35,5 +37,10 @@ rm CMakeCache.txt Makefile cmake_install.cmake
rm -rf CMakeFiles/
rm -rf bin/
cd $src_search_agent
rm CMakeCache.txt Makefile cmake_install.cmake
rm -rf CMakeFiles/
rm -rf bin/
cd $src_index_storage
make clean

View File

@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.6)
PROJECT(search_agent)
EXECUTE_PROCESS(COMMAND git log -1 --pretty=format:%h . OUTPUT_VARIABLE version)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -lrt -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g -lrt -Wall")
AUX_SOURCE_DIRECTORY(. main)