function(use_library) foreach(name ${ARGN}) if(${name} STREQUAL ".") include_directories(${PROJECT_SOURCE_DIR}/include) link_directories(${PROJECT_SOURCE_DIR}/lib) else() message(${PROJECT_SOURCE_DIR}/3rdparty/${name}/include) include_directories(${PROJECT_SOURCE_DIR}/3rdparty/${name}/include) link_directories(${PROJECT_SOURCE_DIR}/3rdparty/${name}/lib) endif() endforeach() endfunction()
|