diff --git a/build.sh b/build.sh index 5b1de65..5aafb5a 100755 --- a/build.sh +++ b/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 \ No newline at end of file diff --git a/clean.sh b/clean.sh index 8c95cf0..711c67d 100755 --- a/clean.sh +++ b/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 diff --git a/src/search_agent/CMakeLists.txt b/src/search_agent/CMakeLists.txt index b8c6e8f..9255b77 100644 --- a/src/search_agent/CMakeLists.txt +++ b/src/search_agent/CMakeLists.txt @@ -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)