modify CMakeList.txt

This commit is contained in:
shzhulin3 2021-04-22 14:25:41 +08:00
parent 1571dbc4ea
commit 525120783b

View File

@ -8,6 +8,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -lrt -Wall -O2")
AUX_SOURCE_DIRECTORY(. main) AUX_SOURCE_DIRECTORY(. main)
AUX_SOURCE_DIRECTORY(./index_sync index_sync) AUX_SOURCE_DIRECTORY(./index_sync index_sync)
AUX_SOURCE_DIRECTORY(./utils utils) AUX_SOURCE_DIRECTORY(./utils utils)
AUX_SOURCE_DIRECTORY(./query query)
LINK_DIRECTORIES( LINK_DIRECTORIES(
${PROJECT_SOURCE_DIR}/../../comm ${PROJECT_SOURCE_DIR}/../../comm
@ -15,7 +16,7 @@ ${PROJECT_SOURCE_DIR}/../../3rdlib/jsoncpp/lib
${PROJECT_SOURCE_DIR}/../../comm/stat ${PROJECT_SOURCE_DIR}/../../comm/stat
) )
ADD_EXECUTABLE(index_read ${main} ${index_sync} ${utils}) ADD_EXECUTABLE(index_read ${main} ${index_sync} ${utils} ${query})
target_include_directories(index_read PUBLIC target_include_directories(index_read PUBLIC
../../3rdlib/jsoncpp/include ../../3rdlib/jsoncpp/include