体验新版 GitCode,发现更多精彩内容 >>
aux_source_directory(src NODES_SRC) add_library(nodes STATIC ${NODES_SRC}) target_include_directories( nodes PUBLIC "${CMAKE_SOURCE_DIR}/include/nodes" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" ) target_link_libraries( nodes PRIVATE os util ) if(${BUILD_TEST}) ADD_SUBDIRECTORY(test) endif(${BUILD_TEST})