add search_agent to build.sh
This commit is contained in:
parent
ea922d5e98
commit
64e5a627ff
6
build.sh
6
build.sh
@ -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
|
7
clean.sh
7
clean.sh
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user