TarsCloud_TarsCpp/servant/libservant/CMakeLists.txt
ruanshudong 57da604c10 remove logs
modify CMakeList remove cmake warning
2019-11-04 15:04:14 +08:00

26 lines
578 B
CMake
Executable File

if(_USE_OPENTRACKING)
include_directories(${PROJECT_SOURCE_DIR} ${OPENTRACKING_INC})
else()
include_directories(${PROJECT_SOURCE_DIR})
endif()
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
aux_source_directory(. DIR_SRCS)
add_library(tarsservant ${DIR_SRCS})
target_link_libraries(tarsservant)
if(${TARS_SSL} EQUAL 1)
target_link_libraries(tarsservant; crypto; ssl)
else()
target_link_libraries(tarsservant)
endif()
add_dependencies(tarsservant COPY-SERVENT-TARS)
install(TARGETS tarsservant
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)