isearch/comm/stat/CMakeLists.txt

30 lines
646 B
CMake
Raw Normal View History

2021-03-19 18:38:34 +08:00
cmake_minimum_required(VERSION 2.6)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
AUX_SOURCE_DIRECTORY(. main)
add_library(stat ${main} ${http_service})
LINK_DIRECTORIES(
${PROJECT_SOURCE_DIR}/../../comm
${PROJECT_SOURCE_DIR}/../../3rdlib/jsoncpp/lib
${PROJECT_SOURCE_DIR}/../../3rdlib/attr_api
)
ADD_EXECUTABLE(stattool ${main} ${http_service})
target_include_directories(stat PUBLIC
../../comm
../../3rdlib/attr_api
../../3rdlib/jsoncpp/include
)
target_include_directories(stattool PUBLIC
../../comm
../../3rdlib/attr_api
../../3rdlib/jsoncpp/include
)
target_link_libraries(stattool libattr_api_64.a libcommon.a jsoncpp dl rt)